open-consul/agent/consul/usagemetrics
Chris Piraino 4f77f87065
Emit service usage metrics with correct labeling strategy (#8856)
Previously, we would emit service usage metrics both with and without a
namespace label attached. This is problematic in the case when you want
to aggregate metrics together, i.e. "sum(consul.state.services)". This
would cause services to be counted twice in that aggregate, once via the
metric emitted with a namespace label, and once in the metric emited
without any namespace label.
2020-10-09 11:01:45 -05:00
..
usagemetrics.go Emit service usage metrics with correct labeling strategy (#8856) 2020-10-09 11:01:45 -05:00
usagemetrics_oss.go Emit service usage metrics with correct labeling strategy (#8856) 2020-10-09 11:01:45 -05:00
usagemetrics_oss_test.go Emit service usage metrics with correct labeling strategy (#8856) 2020-10-09 11:01:45 -05:00
usagemetrics_test.go Emit service usage metrics with correct labeling strategy (#8856) 2020-10-09 11:01:45 -05:00