Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.38 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.38 KB

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>