martomi / chiadog

A watch dog providing a peace in mind that your Chia farm is running smoothly 24/7.
MIT License
457 stars 120 forks source link

Integration: Grafana Annotations API #244

Closed pieterhelsen closed 3 years ago

pieterhelsen commented 3 years ago

This creates annotations on Grafana dashboards whenever Chiadog triggers an alert.

One problem I see currently with this implementation is that it triggers this error: [2021-06-22 23:39:14] [ ERROR] --- Invalid config.yaml. Missing key: 'daily_stats' (__init__.py:76)

This is because daily stats (and wallet events) should not trigger an annotation to be added to a Grafana dashboard (you typically only want to trigger an annotation when something is wrong), so I have left them out of the config-example.

An example of what an annotation looks like: image