nik-johnson-net / prometheus-envoy

Prometheus collector for Enphase Envoy units

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enphase Envoy Golang Client

This is a prometheus collector for pulling metrics from an Envoy Enphase unit. The collector utilizes the local interface exposed by the device rather than the Enlighten API. Enphase units are embedded devices, so the collector is implemented as a proxy collector similar to the snmp_exporter tool.

https://enphase.com/en-us/support/what-envoy

Example

  - job_name: 'prometheus-envoy'
    static_configs:
      - targets:
        - '192.168.1.40'
        - '192.168.1.41'
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: 127.0.0.1:2112  # The prometheus-smarthome's real hostname:port.

Building and running

cd cmd/prometheus-envoy
go build
./prometheus-envoy -port 2112

License

This library is provided under the MIT License

About

Prometheus collector for Enphase Envoy units

License:MIT License


Languages

Language:Go 96.0%Language:Dockerfile 4.0%