This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rules+Alert config w/ Alertmanager & cleanup
- Recording Rules and Alert example for normal and HA - Alertmanager for normal and HA - Fixed up HA to match HA in a bunch of ways - scrape_configs - database (timescale -> postgres) - password - db args -> connstring
- Loading branch information
1 parent
022ccba
commit 73bae80
Showing
7 changed files
with
86 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
groups: | ||
- name: alerts | ||
rules: | ||
- alert: Watchdog | ||
annotations: | ||
description: > | ||
This is a Watchdog alert is meant to ensure that the entire Alerting | ||
pipeline is functional. It is always firing in normal operation | ||
summary: Alerting Watchdog | ||
expr: vector(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Rules and alerts are read from the specified file(s) | ||
rule_files: | ||
- rules.yml | ||
- alerts.yml | ||
|
||
# Alerting specifies settings related to the Alertmanager | ||
alerting: | ||
alert_relabel_configs: | ||
- replacement: "production" | ||
target_label: "env" | ||
action: "replace" | ||
alertmanagers: | ||
- static_configs: | ||
- targets: | ||
# Alertmanager's default port is 9093 | ||
- alertmanager:9093 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
groups: | ||
- name: rules | ||
rules: | ||
- record: instance_cpu:node_cpu_seconds_not_idle:rate5m | ||
expr: > | ||
sum(rate(node_cpu_seconds_total{mode!="idle"}[5m])) | ||
without (mode,cpu) |