This small tool parses the data coming via IR from my MT681 power meter and pushes them to Prometheus Pushgateway Prometheus will then be able to scrape the data from the /metrics endpoint. I then use this data for Dashboards in Grafana
graph TB
A["Python Script"] -- "Pushes Metrics" --> B["Prometheus Pushgateway"]
B -- "Scrapes Data" --> C["Prometheus"]
C -- "Stores Data" --> D["Prometheus Database"]
D -- "Queries Data" --> E[Grafana]