grafana
This commit is contained in:
parent
c0241036c6
commit
305658861c
2 changed files with 24 additions and 20 deletions
systems/monitoring.noc.eh22.intern
|
@ -51,7 +51,9 @@
|
|||
url = "http://mimir.noc.eh22.intern";
|
||||
basicAuth = true;
|
||||
basicAuthUser = "noc";
|
||||
secureJsonData.basicAuthPassword = "$__file{${config.sops.secrets."services/mimir/basic_auth".path}}";
|
||||
secureJsonData.basicAuthPassword = "$__file{${
|
||||
config.sops.secrets."services/mimir/basic_auth".path
|
||||
}}";
|
||||
jsonData = {
|
||||
handleGrafanaManagedAlerts = true;
|
||||
implementation = "mimir";
|
||||
|
|
|
@ -66,7 +66,7 @@ in
|
|||
utf8_strict_mode = true;
|
||||
fallback_config_file = pkgs.writers.writeYAML "alertmanager.yaml" {
|
||||
route = {
|
||||
group_by = ["alertname"];
|
||||
group_by = [ "alertname" ];
|
||||
receiver = "telegram";
|
||||
group_wait = "30s";
|
||||
group_interval = "1m";
|
||||
|
@ -75,10 +75,12 @@ in
|
|||
receivers = [
|
||||
{
|
||||
name = "telegram";
|
||||
telegram_configs = [{
|
||||
telegram_configs = [
|
||||
{
|
||||
bot_token_file = config.sops.secrets."services/telegrambot/token".path;
|
||||
chat_id = -1002579132187;
|
||||
}];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
templates = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue