GlobalNOC / globalnoc-networkmap-panel

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

SQL Example #93

Open polaton opened 5 years ago

polaton commented 5 years ago

Hi,

I was wondering if there was an easy way to query data from a SQL Database (Postgres in my case), format data as expected by your plugin and display those data on the map.

I didn't find any example or mention that it is possible.

I have to use SQL, and it'd be better if I could use your plugin without touching the code.

Thanks.

diogont commented 5 years ago

+1 for this!

In particular, I am trying to integrate the networkmap-panel with zabbix datasource in grafana, but an sql query would also do the trick.

Thanks a lot!

sreemukha commented 5 years ago

Hi,

This panel should work with any time-series database. Please make sure that the target name returned by your data source matches with that of the endpoint names in the map source JSON. (You might have to use aliasing to make this work)

Although we do not have an example particularly for SQL or Zabbix, please refer to #85 to see how this works with InfluxDB. (Note that this is pretty much how it would work with any data source)

Thanks