I am utilizing graphite to obtain statistics and would like to display a justgage gauge for a specific variable. Graphite provides values in either JSON format:
[{"target": "snmp.ssbSubstation.realEnergy.1", "datapoints": [[4511552439.0, 1417540920]]}]
or raw:
snmp.ssbSubstation.realEnergy.1,1417540860,1417540920,60|4511552439.0
This is the complete line of data returned based on whether you select json or raw output. The URL is structured like
http://<graphite server>/render?target=snmp.ssbSubstation.realEnergy.1&format=raw&from=-1min
In either case, my goal is to extract 4511552439.0
, assign it as the value for the gauge, and render it in an HTML panel within Grafana. Is there a straightforward method to accomplish this?