]> git.ipfire.org Git - thirdparty/collectd.git/commit
resource_metrics: Skip duplicate metrics instead of erroring out. 4196/head
authorFlorian Forster <octo@collectd.org>
Sun, 17 Dec 2023 08:45:11 +0000 (09:45 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 18 Dec 2023 22:28:18 +0000 (23:28 +0100)
commit4551377f70b790585c9d224a6549c0472a18e0a1
tree4af8dae40525b54a2d9c770cd2106786405e754a
parenta529e36b09a7a1e24a723d0a36b31fdf1e5eef78
resource_metrics: Skip duplicate metrics instead of erroring out.

The semantics have been changed to simply ignore metrics that are already
in the set. The previous semantic was optimized for a "add and if that
fails flush and try again" plugin behavior. With the support for multiple
instances of the same metric (at different times), there no longer is a
need to ensure metrics in the set are unique.
src/utils/resource_metrics/resource_metrics.c
src/utils/resource_metrics/resource_metrics.h
src/utils/resource_metrics/resource_metrics_test.c