/libsml-prometheus-exporter

Prometheus exporter using libsml to parse SmartMeter output

Primary LanguageC++

Prometheus exporter for libsml-based Smart Meters

This little program combines libsml and prometheus-cpp to export metrics read out from Smartmeters such as ISKRA MT681.

Build

mkdir build && cd build && cmake .. && make 

The project fetches external dependencies, and requires the following packages to be installed (example here for Debian 10, adjust accordingly):

apt install git build-essential uuid-dev pkg-config libcurl4-openssl-dev zlib1g-dev

Usage

See the provided run-*.sh scripts, where one is using umockdev in order to run it without the device present (useful for development).