Using Prometheus for data collection
The prometheus database is used for many projects for data collection. It is relatively easy to setup and use.
For installation, you can follow a guide provided by the prometheus devs.
Here are some distro-specific guides for linux:
- Debian/Ubuntu/Raspbian: See this guide here (Although there should also be something in the APT repos)
- Archlinux: Archlinux Wiki / Prometheus
Configuring Prometheus to scrape data from the OpenDTU
# /etc/prometheus/prometheus.yml
scrape_configs:
- job_name: 'opendtu'
scrape_interval: 5s # >= Inverter scrape interval
static_configs:
- targets: ['<ip of first opendtu>', '<ip of second opendtu>']
metrics_path: /api/prometheus/metrics