Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Example #93

Open
polaton opened this issue Sep 10, 2019 · 2 comments
Open

SQL Example #93

polaton opened this issue Sep 10, 2019 · 2 comments

Comments

@polaton
Copy link

polaton commented Sep 10, 2019

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
Copy link

diogont commented Sep 12, 2019

+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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants