consul_exporter icon indicating copy to clipboard operation
consul_exporter copied to clipboard

Initial approach for adding meta as metrics

Open m1keil opened this issue 3 years ago • 1 comments

Related to #196

I haven't added anything else beyond the basics. I wonder if this is acceptable approach.

Ideally, I wanted my meta to be exposed like this:

consul_service_meta{service_id="...", node="...", key1="value1", key2="value2"} 1

However, I wasn't familiar with the Prometheus library. It seems like dynamic labels are bit trickier to make, and I thought maybe this is almost as good:

consul_service_meta{service_id="...", node="...", key="key1", value="value1"} 1
consul_service_meta{service_id="...", node="...", key="key2", value="value2"} 1

I've also added metaFilter parameter which enables filtering which meta keys a user would want to expose.

m1keil avatar May 02 '21 06:05 m1keil

This needs a DCO sign-off. You can use git commit -s --amend to add it.

SuperQ avatar Feb 07 '22 20:02 SuperQ

@m1keil any chance you you getting this over the line?

aholyoake-bc avatar Mar 16 '23 10:03 aholyoake-bc

Closing as @aholyoake-bc is leading the effort at: https://github.com/prometheus/consul_exporter/pull/264

m1keil avatar Apr 01 '23 00:04 m1keil