mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
26 lines
642 B
Nix
26 lines
642 B
Nix
{config, ...}: {
|
|
sops.secrets.grafana_discord_webhook_url = {
|
|
sopsFile = ../secrets/grafana.yaml;
|
|
owner = "grafana";
|
|
};
|
|
services.grafana.provision.alerting.contactPoints.settings = {
|
|
apiVersion = 1;
|
|
contactPoints = [
|
|
{
|
|
orgId = 1;
|
|
name = "Discord";
|
|
receivers = [
|
|
{
|
|
uid = "discord_alerting";
|
|
type = "discord";
|
|
disableResolveMessage = false;
|
|
settings = {
|
|
url = "$__file{${config.sops.secrets.grafana_discord_webhook_url.path}}";
|
|
#avatar_url = "";
|
|
};
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
}
|