Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
prometheus: use 1 as 'success' value, not 0
Browse files Browse the repository at this point in the history
related to: #301 (comment)

Because:
* The Base Prometheus scraper used the `systemctl` error code to
  indicate if a service is active: `0` == OK; otherwise NOT OK
* This is not intuitive, especially when extending the monitoring to
  other status, like the network connectivity in this pull request.
* It's better to use `1` as OK and `0` as NOT OK, which also makes
  visualization in Grafana easier.

This commit:
* changes logged values for network connectivity, `1` meaning OK
* changes logged values for systemd units, `1` meaning OK
* adjusts Grafana dashboard to use new values
* extends Grafana dashboard with diskspace usage over time
  (long overdue)
  • Loading branch information
Stadicus committed Dec 9, 2019
1 parent f668792 commit 5ce26b0
Show file tree
Hide file tree
Showing 2 changed files with 317 additions and 144 deletions.
Loading

0 comments on commit 5ce26b0

Please sign in to comment.