'Need a working example of Grafana integrated with a custom API to display Node Graph
I am trying to generate a directed node graph using grafana (latest). I hardly see any tutorials anywhere.
I can expose an api which reads JSON data from disk and gives it to grafana which can display the graph. I dont know how the JSON should look like so that grafana can print the node graph. There is hardly any help on this on Google. I have tried to use d3js; but its learning curve is very high and i cant get something working quickly.
Any links/ pointers to a tutorial/ samples with Grafana integrated with some custom api to generate node graph are appreciated.
Solution 1:[1]
Have you looked at the following links?
Node Graph documentation - https://grafana.com/docs/grafana/latest/visualizations/node-graph/#data-api
Datasource which can connect to your REST APIs and convert into whatever node graph likes - https://github.com/hoptical/nodegraph-api-plugin
Here is how I could create a simple node graph using testDataDB csv content data source -
It will be displayed as follows -
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |