Requires Grafana JSON Plugin
To start the server
npm install
node index.js
requires env.json
{"key":"...",
"subDomain": "..."}
Server runs on port 3333
For access to all Loggers use url http://localhost:3333
For access to specific site loggers use http://localhost:3333/{siteCode}
- If there are no loggers/ Interval meters for that site code it will return a 404
The metrics should display the reference name of all of the site loggers
The sum functionality allows you to add multiple data sets together and return as a single set.
- Select one of the data sets as the initial metric
- Click additional JSON data and enter
{"operation":"sum","loggers":[]}
. The loggers array should contain all the strings of the logger names. An example of this can be seen below
{"operation":"sum","loggers":["ELEC - Lift 2","ELEC - Lift 3","ELEC - Lift 4","ELEC - Lift 6"]}
The sub functionality allows you to subtract multiple data sets and returns as a single set.
- Select one of the data sets as the initial metric
- Click additional JSON data and enter
{"operation":"sub","loggers":[]}
. The loggers array should contain all the strings of the logger names. An example of this can be seen below
{"operation":"sub","loggers":["ELEC - Lift 2","ELEC - Lift 3","ELEC - Lift 4","ELEC - Lift 6"]}
In the above case, if the inital metric was "ELEC - Lift 1", the result would be Lift1 - (Lift2 + Lift3 + Lift4 + Lift6)
Normalizes a data set between 0 and 1.
- Click additional JSON data and enter
{"norm":true}
.
Add a custom name for the data set
- Click additional JSON data and enter
{"name": name }
.