mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(alertmanager): access via http
This commit is contained in:
@@ -24,7 +24,7 @@ in {
|
|||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"alertmanager.kmein.r" = {
|
${lib.removePrefix "http://" config.services.prometheus.alertmanager.webExternalUrl} = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:${toString config.services.prometheus.alertmanager.port}";
|
proxyPass = "http://127.0.0.1:${toString config.services.prometheus.alertmanager.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
@@ -43,11 +43,12 @@ in {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
title = "Grafana";
|
title = "Grafana";
|
||||||
link = "http://${config.services.grafana.domain}";
|
link = "http://${config.services.grafana.settings.server.domain}";
|
||||||
description = "displays metrics from devices in the <i>niveum</i> network.";
|
description = "displays metrics from devices in the <i>niveum</i> network.";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
title = "Alertmanager bot";
|
title = "Alertmanager";
|
||||||
|
link = config.services.prometheus.alertmanager.webExternalUrl;
|
||||||
description = "notifies me when something goes wrong.";
|
description = "notifies me when something goes wrong.";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@@ -156,6 +157,7 @@ in {
|
|||||||
services.prometheus.alertmanager = {
|
services.prometheus.alertmanager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
listenAddress = "localhost";
|
listenAddress = "localhost";
|
||||||
|
webExternalUrl = "http://alertmanager.kmein.r";
|
||||||
configuration = {
|
configuration = {
|
||||||
route = {
|
route = {
|
||||||
group_wait = "30s";
|
group_wait = "30s";
|
||||||
|
|||||||
Reference in New Issue
Block a user