server icon indicating copy to clipboard operation
server copied to clipboard

Failing to comsume Triton's Prometheus in Grafana

Open tom-r-o opened this issue 6 years ago • 6 comments

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.

tom-r-o avatar Oct 06 '20 15:10 tom-r-o

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.

deadeyegoodwin avatar Oct 06 '20 15:10 deadeyegoodwin

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: Grafana

tom-r-o avatar Oct 06 '20 16:10 tom-r-o

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.

deadeyegoodwin avatar Oct 06 '20 16:10 deadeyegoodwin

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: Grafana

Have you solve this issue now? I have the same problem now. Thanks🙏

hit-lance avatar Oct 26 '21 14:10 hit-lance

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

Screenshot 2021-11-02 at 10 14 32 PM

Although I do get response from the triton metrics end point as expected - Screenshot 2021-11-02 at 10 16 12 PM

And hence when I try to integrate it with Grafana, the system keeps throwing an error. Has anyone been able to resolve this issue?

vsatpathy avatar Nov 02 '21 16:11 vsatpathy

@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

vsatpathy avatar Nov 02 '21 16:11 vsatpathy