mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
service/prometheus: update url
This commit is contained in:
parent
005cef2584
commit
a1731f0c2e
1 changed files with 6 additions and 4 deletions
|
@ -79,6 +79,7 @@ in
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.prometheus = {
|
services.prometheus = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
webExternalUrl = "https://monitor.${domain}";
|
||||||
inherit (cfg) port;
|
inherit (cfg) port;
|
||||||
listenAddress = "127.0.0.1";
|
listenAddress = "127.0.0.1";
|
||||||
|
|
||||||
|
@ -211,19 +212,20 @@ in
|
||||||
description = "Prometheus encountered {{ $value }} template text expansion failures\n VALUE = {{ $value }}\n LABELS = {{ $labels }}";
|
description = "Prometheus encountered {{ $value }} template text expansion failures\n VALUE = {{ $value }}\n LABELS = {{ $labels }}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
my.services.nginx.virtualHosts = [
|
my.services.nginx.virtualHosts = [
|
||||||
{
|
{
|
||||||
subdomain = "monitoring";
|
subdomain = "monitor";
|
||||||
inherit (cfg) port;
|
inherit (cfg) port;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
webapps.apps.prometheus = {
|
webapps.apps = {
|
||||||
dashboard = {
|
prometheus.dashboard = {
|
||||||
name = "Monitoring";
|
name = "Monitoring";
|
||||||
category = "infra";
|
category = "infra";
|
||||||
icon = "heart-pulse";
|
icon = "heart-pulse";
|
||||||
link = "https://monitoring.${domain}";
|
link = "https://monitor.${domain}";
|
||||||
method = "get";
|
method = "get";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue