Add Grafana/Prometheus.
This commit is contained in:
parent
ccc9468d43
commit
557be818da
4 changed files with 61 additions and 8 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue