Hi!
I didn't find how in the documentations so I added this
https://github.com/prometheus/prometheus/issues/8375
Turns out it might be possible using.
But, did I missunderstand what a "label name" is in regards to labelmap and labelkeep?
It sounds like this is to keep labels entirly, not the values of them.
To be clear. This is what I would like for all metrics and from all targets
http_request_duration_seconds_count{client_name="the app"} 1
http_request_duration_seconds_count{client_name="the new app"} 1
http_request_duration_seconds_count{client_name="bogus guy 1"} 1
http_request_duration_seconds_count{client_name="bogus guy 2"} 1
turns into
http_request_duration_seconds_count{client_name="the app"} 1
http_request_duration_seconds_count{client_name="the new app"} 1
http_request_duration_seconds_count{client_name="OTHER"} 2
"the app" and "the new app" would be in a AllowList for all metrics but other values should either be dropped or, better, bunched together as OTHER.
Cheers.