Prometheus - xoseperez/espurna GitHub Wiki
Prometheus scrape config
scrape_configs:
- job_name: 'espurna'
metrics_path: '/api/metrics'
params:
apikey: ['apikeyapikey']
static_configs:
- targets: ['espurna-blabla.lan:80']
metrics URL
http://espurna-blabla.lan/api/metrics?apikey=xxxxxxxxxx
The result looks like this:
relay0 1
current 0.212
voltage 215
power 21
reactive 39
apparent 45
factor 46
energy_delta 1285
energy 0.886