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";
|
||||
|
|
|
@ -65,28 +65,30 @@ in
|
|||
};
|
||||
utf8_strict_mode = true;
|
||||
fallback_config_file = pkgs.writers.writeYAML "alertmanager.yaml" {
|
||||
route = {
|
||||
group_by = ["alertname"];
|
||||
receiver = "telegram";
|
||||
group_wait = "30s";
|
||||
group_interval = "1m";
|
||||
repeat_interval = "3m";
|
||||
};
|
||||
receivers = [
|
||||
{
|
||||
name = "telegram";
|
||||
telegram_configs = [{
|
||||
route = {
|
||||
group_by = [ "alertname" ];
|
||||
receiver = "telegram";
|
||||
group_wait = "30s";
|
||||
group_interval = "1m";
|
||||
repeat_interval = "3m";
|
||||
};
|
||||
receivers = [
|
||||
{
|
||||
name = "telegram";
|
||||
telegram_configs = [
|
||||
{
|
||||
bot_token_file = config.sops.secrets."services/telegrambot/token".path;
|
||||
chat_id = -1002579132187;
|
||||
}];
|
||||
}
|
||||
];
|
||||
templates = [
|
||||
"/etc/alertmanager/templates/*.tmpl"
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
templates = [
|
||||
"/etc/alertmanager/templates/*.tmpl"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
ruler = {
|
||||
alertmanager_url = "http://localhost/alertmanager";
|
||||
ring = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue