Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabriziofiorucci/myenergi-prometheus-exporter
A Prometheus Exporter for MyEnergi REST API
https://github.com/fabriziofiorucci/myenergi-prometheus-exporter
docker kubernetes myenergi photovoltaic solar-energy
Last synced: about 1 month ago
JSON representation
A Prometheus Exporter for MyEnergi REST API
- Host: GitHub
- URL: https://github.com/fabriziofiorucci/myenergi-prometheus-exporter
- Owner: fabriziofiorucci
- Created: 2024-02-10T17:21:47.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-10T18:48:16.000Z (11 months ago)
- Last Synced: 2024-02-14T11:34:38.785Z (10 months ago)
- Topics: docker, kubernetes, myenergi, photovoltaic, solar-energy
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MyEnergi Prometheus Exporter
This is a [Prometheus](https://prometheus.io/) exporter for [myenergi](https://www.myenergi.com/) renewable energy products.
# Prerequisites
- Docker 23.0+
- Kubernetes cluster
- Myenergi API Key - this can be created through [https://myaccount.myenergi.com/](https://myaccount.myenergi.com/)
- Myenergi Eddi and/or Harvi# Support
Modules currently implemented are:
- [X] Eddi
- [X] Harvi
- [ ] Zappi
- [ ] Libbi# Getting an API Key
This repository requires a Myenergi API Key. It can be created through [https://myaccount.myenergi.com/](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](/contrib/kubernetes)
- `` - The docker image (ie. `myenergi:latest`)
- `` - Your Myenergi username
- `` - Your Myenergi API key
- `` - Your Myenergi server (format must be `https://`, default `https://s18.myenergi.net`)
- `` - The fully qualified domain name to access the container through the Kubernetes ingress controller2. Deploy the manifest:
```
kubectl apply -f contrib/kubernetes/myenergi-prometheus.yaml
```3. Test the prometheus scraping endpoint:
```
curl http://
```