Wondering if it's supported to have one tag for a metric have multiple values? The use case is trying to track multiple reasons a request may fail, e.g.
validation_failures: title_too_long
validation_failures: invalid_email
Generally speaking, a single metric can have multiple tags that share the same "key" but with different "values. E.g, a metric point can be tagged by mykey:foo
and mykey:bar
.
Metrics with "competing key tags" like that are usually not a good practice, because conflicting tag values can easily add more confusion than clarity to teammates that aren't familiar with how the tags are applied. But if you're incrementing a custom "error count" metric and describing it by its cause, and if there are multiple causes, then it seems plausible that adding competing tags here might be the "right" thing to do.
(I say "generally speaking", since it probably depends on how you're creating the metrics -- if you're creating the metrics from log events or something, this may or may not work the way i'm saying it will.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With