Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 controller

2. Deploy the manifest:

```
kubectl apply -f contrib/kubernetes/myenergi-prometheus.yaml
```

3. Test the prometheus scraping endpoint:

```
curl http://
```