Raspberry 52PI UPS HAT monitoring in Grafana
- since there was no prometheus exporter for this hardware, I decided to create one, enjoy

Raspberry 52PI UPS HAT monitoring in Grafana - since there was no prometheus exporter for this hardware, I decided to create one, enjoy


I make things happen !

... comes with Grafana and Prometheus linked toghether, a sleek collection of Dashboards that monitors:

52PI UPS Hardware

Mosquitto MQTT message broker

and Alerting...


- Grafana will publish to "grafana/alerts" Mosquitto MQTT topic a message "Firing Alert" when the mains power is out(*off) and the UPS works on battery, example of the message:

    **Firing Alerts:**
    
      Summary: The mains power is down
      Description: ...running on batteries
      Value A: -1898

------------>then when main power is back<-------------:

    **Resolved Alerts:**

    Summary: The mains power is down
    Description: ...running on batteries
    Value A: 6376        

- prerequisites: docker, docker-compose, a raspberry pi, a 52pi ups hat

- usage:

docker compose up        

---hint:

- from the .env file the sampling time can be changed, default is 30 seconds:

UPS_EXPORTER_SAMPLE_TIME=30         




live terminal logs photo

connected to power source photo

disconnected from power source photo
disconnected from power source photo

disconnected from power source photo



mosquitto MQTT dashboard complex



mosquitto MQTT dashboard simplex


info about the 52pi ups HAT:

https://wiki.52pi.com/index.php?title=EP-0136


link for the repository of the prometheus-exporter and more info:

https://gitlab.com/morninstar_gitops/prometheus_52pi_ups_exporter


link for Grafana Dashboard:

https://grafana.com/grafana/dashboards/22690-raspberry-ups-52pi-monitor/


DONATION of "a coffee" will be highly appreciated since I drank a lot of them in order to create this exporter and the dashboard :)

you can donate here:


https://buymeacoffee.com/planarian

THANK YOU



Chirculescu Horia

OLE for Process Control (OPC), Oracle DBA, HP-UX, Linux

2 个月

Util si scriptul de export date in MQTT (IoT) https://github.com/frtz13/UPSPlus_mqtt , are suport inclusiv pentru controlul prin PWM a unui ventilator de r?cire

要查看或添加评论,请登录

Adrian von der Candea的更多文章

  • Manage a local Kubernetes cluster with FluxCD, deploy/scale an app and monitoring

    Manage a local Kubernetes cluster with FluxCD, deploy/scale an app and monitoring

    Prerequisites: docker, kubectl, k9s, helm, k3d, python, glab-cli, coffee :) Key Points: Automated GitOps Setup: This…

  • planarianQSO

    planarianQSO

    Given: User must be able to send text messages from A to B even if there is no service available When: there`s no GSM…

  • Arch linux install as a virtual machine

    Arch linux install as a virtual machine

    Given: User must be able to send text messages from A to B even if there is no service available When: there`s no GSM…

    3 条评论

社区洞察

其他会员也浏览了