mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-09 07:00:21 +02:00
added prometheus
This commit is contained in:
parent
99d55efb8c
commit
6f612ef521
2 changed files with 16 additions and 6 deletions
|
@ -15,9 +15,13 @@
|
||||||
job_name = "synapse";
|
job_name = "synapse";
|
||||||
scrape_interval = "15s";
|
scrape_interval = "15s";
|
||||||
metrics_path = "/_synapse/metrics";
|
metrics_path = "/_synapse/metrics";
|
||||||
static_configs = {
|
static_configs = [ { targets = [ "localhost:8008" ]; } ];
|
||||||
targets = [ "localhost:8008" ];
|
}
|
||||||
};
|
{
|
||||||
|
job_name = "homelab-stats";
|
||||||
|
static_configs = [
|
||||||
|
{ targets = [ "localhost:${builtins.toString config.services.prometheus.exporters.node.port}" ]; }
|
||||||
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,9 @@ in
|
||||||
# ./features/freshrss.nix using the docker container instead
|
# ./features/freshrss.nix using the docker container instead
|
||||||
./features/grafana.nix
|
./features/grafana.nix
|
||||||
./features/homelab-dashboard.nix
|
./features/homelab-dashboard.nix
|
||||||
|
# ./features/nextcloud.nix
|
||||||
|
# ./features/photoprism.nix
|
||||||
|
./features/prometheus.nix
|
||||||
./features/samba-shares.nix
|
./features/samba-shares.nix
|
||||||
./features/searx.nix
|
./features/searx.nix
|
||||||
./features/synapse-matrix.nix
|
./features/synapse-matrix.nix
|
||||||
|
@ -53,9 +56,9 @@ in
|
||||||
4001 # uptime-kuma
|
4001 # uptime-kuma
|
||||||
5030 # slskd
|
5030 # slskd
|
||||||
8080 # searxng
|
8080 # searxng
|
||||||
8008
|
8008 # matrix-synapse
|
||||||
8448
|
8448 # matrix-synapse
|
||||||
8083 # calibre-web
|
5050 # calibre-web
|
||||||
8400 # crafty-controller
|
8400 # crafty-controller
|
||||||
9000 # authentik
|
9000 # authentik
|
||||||
9091 # transmission
|
9091 # transmission
|
||||||
|
@ -111,4 +114,7 @@ in
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.tailscale = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue