Failing to comsume Triton's Prometheus in Grafana
Description Failing to comsume Triton's Prometheus in Grafana.
Triton Information Triton version: 20.09
Are you using the Triton container or did you build it yourself? Using the pre-built Triton container locally, on a machine without a GPU.
To Reproduce Followed the quick start guide. Then surfing to http://localhost:8002/metrics yields this metricsOutput.txt. Not sure if that's what it is supposed to show.
Tried to create a new Prometheus source in Grafana, using the following url: http://localhost:8002/metrics Which returned an "HTTP Error Bad Request" in Grafana.
Expected behavior See Prometheus' web gui on http://localhost:8002/metrics Be able to consume http://localhost:8002/metrics on Grafana as a Prometheus source.
The output you show is the metrics in the prometheus data format and is what is expected. It is likely that your prometheus setup is somehow incorrect.
Thank you for replying quickly.
Do you perhaps mean that my Grafana setup is incorrect? All I did was create a new source in Grafana and put the http://localhost:8002/metrics url in it. Any relevant guide?
The setup:

I'm not sure you can point grafana directly to Triton. You might need prometheus to scrape Triton and then grafana points to that prometheus. In any case you should be able to find prometheus / grafana documentation about how to set that up. Triton itself doesn't do anything custom or different with respect to metrics.
Thank you for replying quickly.
Do you perhaps mean that my Grafana setup is incorrect? All I did was create a new source in Grafana and put the http://localhost:8002/metrics url in it. Any relevant guide?
The setup:
Have you solve this issue now? I have the same problem now. Thanks🙏
I am facing the same issue, but I guess the issue for all of us is with the integration with prometheus. As when I open the Prometheus UI it always keeps saying that http://localhost:8002/metrics is down
Although I do get response from the triton metrics end point as expected -

And hence when I try to integrate it with Grafana, the system keeps throwing an error. Has anyone been able to resolve this issue?
@hit-lance have you tried exporting your metrics to Prometheus and adding prometheus to your Grafana dashboard. Apparently that's what is recommended by Nvidia