Skip to content

fabriziofiorucci/MyEnergi-Prometheus-Exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MyEnergi Prometheus Exporter

This is a Prometheus exporter for myenergi renewable energy products.

Prerequisites

Support

Modules currently implemented are:

  • Eddi
  • Harvi
  • Zappi
  • Libbi

Getting an API Key

This repository requires a Myenergi API Key. It can be created through https://myaccount.myenergi.com/

Building the image

The docker image can be built using:

docker build -t myenergi:latest .

Running on Kubernetes

  1. Configure the relevant fields in the Kubernetes manifest
  • <DOCKER_IMAGE_NAME> - The docker image (ie. myenergi:latest)
  • <MYENERGI_USERNAME> - Your Myenergi username
  • <MYENERGI_API_KEY> - Your Myenergi API key
  • <MYENERGI_SERVER> - Your Myenergi server (format must be https://<FQDN>, default https://s18.myenergi.net)
  • <YOUR_PREFERRED_FQDN> - The fully qualified domain name to access the container through the Kubernetes ingress controller
  1. Deploy the manifest:
kubectl apply -f contrib/kubernetes/myenergi-prometheus.yaml
  1. Test the prometheus scraping endpoint:
curl http://<YOUR_PREFERRED_FQDN>