artprima / prometheus-metrics-bundle

Symfony 5/6 Prometheus Metrics Bundle
MIT License
127 stars 29 forks source link

Use cases or examples #49

Closed chiqui3d closed 3 years ago

chiqui3d commented 3 years ago

First, apologies for opening an issue. But I'm a bit lost. I'm currently using Grafana with Prometheus because I'm using Cadvisor to view Docker metrics, so now I'm looking for a way to get a graph on time by viewing the duration of each request in my Symfony application. So I found your great Bundle, but I'm not able to show something simple that works for me. With the number of requests I haven't had any problems, what I am not able to do is to show a graph about the time of the duration of each request and with a tooltip of the route, but as far as I can see the histograms are not good for that, right? Don't you have some examples to get the most out of it?

So far I've managed to do this in Grafana.

Screenshot_5

But this does not filter by prometheus date range. So I've managed to get this to filter by dates.

avg-prometheus-with-range-time

Although this one I really don't know if it is well done

Finally I would like to get as I said before a graph over time, I do not know if this is possible?

Sorry again and I hope you can help me. Thanks

denisvmedia commented 3 years ago

Sorry, but you should reach out to the Grafana community. This bundle is just a way to expose the metrics. Moreover, it is just a Symfony wrapper around this library.

chiqui3d commented 3 years ago

Don't you use prometheus/bundle to create the graphics?

denisvmedia commented 3 years ago

Regardless of how I personally use the bundle this repository is not the right place to ask these questions.