Merge branch 'main' of ssh://git.nosd.in:2222/yo/nodegopher

This commit is contained in:
yo 2025-01-12 21:02:00 +01:00
commit 4daf0d4000

View File

@ -12,16 +12,20 @@ It gets time range values from Grafana, so it can relay them to prometheus if yo
see config.yaml.sample
## Grafana datasource
Successfully tested with yesoreyeram-infinity-datasource datasource
Successfully tested with [yesoreyeram-infinity-datasource](https://github.com/grafana/grafana-infinity-datasource) datasource
Create an infinity query, name it "Edges". Type "JSON", Parser "Backend", Source "URL", Format "Table", Method "GET"
URL: "http://my-nodegopher-host:8080/graph1/edges?from=$__from&to=$__to&interval=$__interval"
![Edges configuration](https://git.nosd.in/yo/nodegopher/raw/branch/main/docs/nodegopher_grafana_edges.png "Edges configuration")
Create a second infinity query named "Nodes", same config,
URL: "http://my-nodegopher-host:8080/graph1/nodes?from=$__from&to=$__to&interval=$__interval"
switch to visualization type "NodeGraph", and voila
![NodeGraph sample](https://git.nosd.in/yo/nodegopher/raw/branch/main/docs/nodegopher_sample.png "NodeGraph sample")
## Instance management
### Reload configuration
You can reload configuration file when the API is running, with either sending a signal, or make a POST request.