This is a Prometheus exporter for the SolarEdge monitoring API.
There are two requirements, an api token and a site ID. These must be exported to the environment as:
API_TOKEN
and SITE_ID
to run the exporter.
go build -o solaredge-exporter
docker-compose up
Currently, the exporter only queries the overview endpoint and gathers the current power output.
Also, due to the API request limitations of the SolarEdge API being 300/req/day I have disabled querying from the hours of 7PM to 7AM CST. In a future iteration I plan on allowing users to specify a lat/long so I can get sunrise/sunset data.