client_rust
client_rust copied to clipboard
exporting metrics lists without registering them
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?
If I understand you correctly https://github.com/prometheus/client_rust/pull/82 adds what you are looking for.