fhemberger / prometheus-formatter

Browser extension which makes plain Prometheus/OpenMetrics endpoints easier to read
126 stars 10 forks source link

Need support other metrics endpoints #20

Closed imclint21 closed 9 months ago

imclint21 commented 9 months ago

Hi,

Nice extension guys!

Anyway, by example I'm running http://localhost/snmp and the metrics are not formatted, I guess there are a better away to parse and detect prometheus metrics

Regards

fhemberger commented 9 months ago

Hi,

great to hear you find the extension useful. If you click on its icon, you can define additional paths for highlighting.

(Metric endpoints usually serve the data with a text/plain mime type, but sending all plain text files through the parser doesn't make much sense.)

imclint21 commented 9 months ago

Hi,

Ah I see, I thought about this, I went in extension settings but didn't found parsing settings, now I see it, thanks!

Anyway, I tried to add ^/snmp and other regex, but nothing seems works..

This is the endpoint I try to add, I guess I should also specify the path.

http://10.1.0.2:9116/snmp?module=if_mib&target=10.1.0.6

imclint21 commented 9 months ago

Ah nevermind, now it works like a charm, just added ^/snmp I guess it was not saved before or whatever!

image