Add Grafana/Prometheus.

This commit is contained in:
Nolan Darilek 2025-04-24 14:58:51 -05:00
parent ccc9468d43
commit 557be818da
4 changed files with 61 additions and 8 deletions

View file

@ -0,0 +1,23 @@
{ config, ... }:
{
services = {
prometheus = {
enable = true;
scrapeConfigs = [
{
job_name = "thewordnerd";
static_configs = [
{
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
}
];
}
];
};
caddy.virtualHosts."prometheus.tailc50184.ts.net".extraConfig = ''
bind tailscale/prometheus
reverse_proxy localhost:9090
'';
};
}