1
Fork 0

Use proper prometheus url in grafana

This commit is contained in:
prescientmoon 2024-02-24 08:52:01 +01:00
parent b9d52105fb
commit c094cf48ce
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -46,36 +46,45 @@ in
enable = true;
# https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/
alerting.contactPoints.settings.contactPoints = [{
name = "main";
receivers = [
{
uid = "main_discord";
type = "discord";
settings.url = secret "grafana_discord_webhook";
settings.message = ''
@everyone An issue occured :O
{{ template "default.message" . }}
'';
}
{
uid = "main_email";
type = "email";
settings.addresses = "colimit@moonythm.dev";
}
];
}];
alerting.contactPoints.settings = {
apiVersion = 1;
contactPoints = [{
name = "main";
receivers = [
{
uid = "main_discord";
type = "discord";
settings.url = secret "grafana_discord_webhook";
settings.message = ''
@everyone An issue occured :O
{{ template "default.message" . }}
'';
}
{
uid = "main_email";
type = "email";
settings.addresses = "colimit@moonythm.dev";
}
];
}];
};
alerting.policies.settings.policies = [{
receiver = "main";
}];
alerting.policies.settings = {
apiVersion = 1;
policies = [{
receiver = "main";
}];
};
datasources.settings.datasources = [{
name = "Prometheus";
type = "prometheus";
access = "proxy";
url = "prometheus.moonythm.dev";
}];
datasources.settings = {
apiVersion = 1;
datasources = [{
name = "Prometheus";
type = "prometheus";
access = "proxy";
url = "https://prometheus.moonythm.dev";
}];
};
};
# }}}
};