GlobalNOC / globalnoc-networkmap-panel

A network map panel for Grafana
Other
196 stars 29 forks source link

Is it possible to use Prometheus as tsdb source? #103

Closed freedomwarrior closed 4 years ago

freedomwarrior commented 4 years ago

If yes, show me please some example how to use it. Thnx!

daldoyle commented 4 years ago

We don't use Prometheus as a datasource unfortunately so I do not have an example I can demonstrate for you. Grafana uses a standardization for the data format for any datasource which is how visualizations are able to interoperate regardless of datasource, so it should work just fine. The real trick in the map is how to associate the data back to the elements on the map, which is what the results.links.endpoints element is all about.

Here's an example of someone figuring out how to make it work using InfluxDB. I've seen it work with MySQL, ElasticSearch, InfluxDB, and our in house driver so I would expect this to work with Prometheus as well. https://github.com/GlobalNOC/globalnoc-networkmap-panel/issues/97#issuecomment-581597789

freedomwarrior commented 4 years ago

Yes, it works. One more question. How can I add data from link in custom tooltip? Something like $link.max didnt work.