Make grafana alert settings proper
This commit is contained in:
parent
404d84d56e
commit
3bc32e1cfd
|
@ -36,16 +36,29 @@ in
|
||||||
provision = {
|
provision = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
alerting.contactPoints.settings.contactPoints = [
|
# https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/
|
||||||
{ name = "email"; }
|
alerting.contactPoints.settings = {
|
||||||
|
deleteContactPoints = [
|
||||||
|
{ uid = "main_discord"; }
|
||||||
|
{ uid = "main_email"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
contactPoints = [{
|
||||||
|
name = "main";
|
||||||
|
receivers = [
|
||||||
{
|
{
|
||||||
name = "discord";
|
uid = "main_discord";
|
||||||
webhook_configs = [{
|
type = "discord";
|
||||||
send_resolved = true;
|
settings.url = secret "grafana_discord_webhook";
|
||||||
url = secret "grafana_discord_webhook";
|
}
|
||||||
}];
|
{
|
||||||
|
uid = "main_email";
|
||||||
|
type = "email";
|
||||||
|
settings.addresses = "colimit@moonythm.dev";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
|
||||||
datasources.settings.datasources = [{
|
datasources.settings.datasources = [{
|
||||||
name = "Prometheus";
|
name = "Prometheus";
|
||||||
|
|
Loading…
Reference in a new issue