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