Closed jeinwag closed 5 years ago
That'd imply that there's a tag with an empty value. You probably want to use some other metric that has a service_id label for this purpose.
@brian-brazil Consul tags are just tags, not labels, so they don't have any values. The service_tags label includes all tags of a service joined together, separated by comma, so I believe an empty label would correctly indicate that there are no tags.
It looks like a series per tag to me: https://github.com/prometheus/consul_exporter/blob/master/consul_exporter.go#L312
You are corrent, so my original suggestion won't work.
Currently, consul_exporter doesn't provide a service_tags metric for untagged services.
Maybe it would be better to export a metric with an empty label in such cases, e.g:
This would make joining and querying easier.
I can implement this but would first like to hear your opinions.