Skip to content

Prometheus Exporter for Fronius Symo Photovoltaics

License

Notifications You must be signed in to change notification settings

Trojan295/fronius-exporter

 
 

Repository files navigation

Fronius Exporter

Build Maintainability Tests Releases License

About

Scrapes a Fronius Photovoltaic power installation and converts sensor data to Prometheus metrics. It has been tested with Fronius Symo 8.2-3-M (Software version 3.14.1-10).

Grafana

Installing

Traditional packages or binary

  1. Download latest binary or package from the Releases page

  2. dpkg -i fronius-exporter_linux_amd64.deb (Debian/Ubuntu)

  3. rpm -i fronius-exporter_linux_amd64.rpm (CentOS)

  4. chmod +x fronius-exporter && mv fronius-exporter /usr/local/bin/

Docker

  1. docker run -d --name fronius-exporter -p "8080:8080" ghcr.io/ccremer/fronius-exporter --help

Helm Chart

  1. helm repo add ccremer https://ccremer.github.io/charts

  2. helm install fronius ccremer/fronius-exporter

Usage

fronius-exporter --symo.url http://symo.ip.or.hostname

Upon each call to /metrics, the exporter will do a GET request on the given URL, and translate the JSON response to Prometheus metrics format.

Configuration

fronius-exporter can be configured with CLI flags. Call the binary with --help to get a list of options.

💡

All flags are also configurable with Environment variables.

  • Replace the - char with _ in the names and uppercase the names

  • Replace the . delimiter with __

  • CLI flags take precedence

Following calls are equivalent
fronius-exporter --symo.url http://...
SYMO__URL=http://... fronius-exporter

As a client API

See Example

Developing

Requirements

  • Go

  • Docker

Building

Run make help to see available goals

Test metrics

If you don’t have a Symo device at hand, you can fake one:

# In its own terminal
python3 -m http.server 8081

# In another terminal
go run . -v --symo.url http://localhost:8081/pkg/fronius/testdata/example_1.json

# Yet another terminal or browser
curl -L http://localhost:8080/metrics

About

Prometheus Exporter for Fronius Symo Photovoltaics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 94.0%
  • Makefile 5.4%
  • Dockerfile 0.6%