paullockaby / enphase-exporter

A Prometheus exporter for Enphase Envoy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

enphase-exporter

An application for polling the Enphase Envoy for power information and providing it as a Prometheus exporter.

Development

This library uses Python Poetry for builds, tests, and deployment. Once you've installed Poetry you can install this project's dependencies with this command:

poetry install

Assuming that you have set up your environment as described later in this document, you can test the application by running this command:

poetry run enphase_exporter --api-url=http://localhost:8080/

Still assuming that your environment is configured, an alternative way to run this is with Docker, like this:

docker build -t enphase_exporter .
docker run --rm enphase_exporter --api-url=http://envoy-proxy:8080/ --port=8000

Configuration

--api-url

The full URL to your local Enphase Envoy Proxy. This might be something like http://192.168.1.200/ or http://enphase-proxy.tools.svc.cluster.local:8080/.

--port

The port on which to listen for Prometheus connections.

Example

Once you've configured Prometheus to collect the data that you want, there is an example dashboard in the examples directory. It looks like this:

Example Grafana Dashboard for Enphase Exporter

Trademarks

Enphase(R), Envoy(R) are trademarks of Enphase Energy(R).

All trademarks are the property of their respective owners.

Any trademarks used in this project are used in a purely descriptive manner and to state compatability.

About

A Prometheus exporter for Enphase Envoy.

License:Apache License 2.0


Languages

Language:Python 75.0%Language:Dockerfile 12.7%Language:Makefile 10.5%Language:Shell 1.8%