I'm using Netdata to monitor several maintenance tasks from Kopia, and I send their statuses to StatsD every 10 minutes.
Each task has a separate dimension/metric like this:
dimension = kopia.quick_maintenance_advance-epoch_success 'Advance epoch' last
dimension = kopia.quick_maintenance_compact-single-epoch_success 'Compact single epoch' last
dimension = kopia.quick_maintenance_delete-superseded-epoch-indexes_success 'Delete superseded epoch indexes' last
dimension = kopia.quick_maintenance_cleanup-epoch-markers_success 'Cleanup epoch markers' last
dimension = kopia.quick_maintenance_cleanup-logs_success 'Cleanup logs' last
dimension = kopia.quick_maintenance_generate-epoch-range-index_success 'Generate epoch range index' last
Each dimension value is either 1 (OK) or 0 (Fail).
I would like to create alerts for each task. For example, if kopia.quick_maintenance_generate-epoch-range-index_success = 0, I want to trigger an alert to let me know that the "Generate epoch range index" task failed.
What is the best way to create such alerts and charts?