mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 01:44: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 {
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
webExternalUrl = "https://monitor.${domain}";
|
||||
inherit (cfg) port;
|
||||
listenAddress = "127.0.0.1";
|
||||
|
||||
|
@ -211,19 +212,20 @@ in
|
|||
description = "Prometheus encountered {{ $value }} template text expansion failures\n VALUE = {{ $value }}\n LABELS = {{ $labels }}";
|
||||
};
|
||||
};
|
||||
|
||||
my.services.nginx.virtualHosts = [
|
||||
{
|
||||
subdomain = "monitoring";
|
||||
subdomain = "monitor";
|
||||
inherit (cfg) port;
|
||||
}
|
||||
];
|
||||
|
||||
webapps.apps.prometheus = {
|
||||
dashboard = {
|
||||
webapps.apps = {
|
||||
prometheus.dashboard = {
|
||||
name = "Monitoring";
|
||||
category = "infra";
|
||||
icon = "heart-pulse";
|
||||
link = "https://monitoring.${domain}";
|
||||
link = "https://monitor.${domain}";
|
||||
method = "get";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue