client_rust icon indicating copy to clipboard operation
client_rust copied to clipboard

exporting metrics lists without registering them

Open kwiesmueller opened this issue 1 year ago • 1 comments

Currently the encoder only supports a single metric. There is no concept like metrics lists. It's not uncommon that collectors get raw data from their source and generate a list of metrics from that. Right now it seems like we have to register every metric, but it would be great if we had a way to generate metrics on the fly on every scrape and pass them to the encoder.

Or am I just missing the right module?

kwiesmueller avatar Sep 02 '22 04:09 kwiesmueller

If I understand you correctly https://github.com/prometheus/client_rust/pull/82 adds what you are looking for.

mxinden avatar Sep 02 '22 06:09 mxinden