Get the elements in Prometheus CollectorRegistry

7 views
Skip to first unread message

Nipuni Chandimali

unread,
Apr 7, 2020, 10:39:46 PM4/7/20
to promethe...@googlegroups.com

Hi All,

I want to print the metric values saved in io.prometheus.client.CollectorRegistry. Even though I used registry.metricFamilySamples().nextElement().toString() method it outputs only the last metric. How to get all the metrics saved in the registry to a an ArrayList ?

Thanks,

Nipuni


Reply all
Reply to author
Forward
0 new messages