grafana: add caddy metrics/dashboard
This commit is contained in:
parent
a9212a0118
commit
98fe84c999
3 changed files with 2642 additions and 1 deletions
|
|
@ -52,6 +52,11 @@
|
||||||
'';
|
'';
|
||||||
globalConfig = ''
|
globalConfig = ''
|
||||||
grace_period 30s
|
grace_period 30s
|
||||||
|
|
||||||
|
metrics {
|
||||||
|
per_host
|
||||||
|
}
|
||||||
|
|
||||||
servers {
|
servers {
|
||||||
client_ip_headers CF-Connecting-Ip X-Forwarded-For
|
client_ip_headers CF-Connecting-Ip X-Forwarded-For
|
||||||
trusted_proxies cloudflare {
|
trusted_proxies cloudflare {
|
||||||
|
|
|
||||||
2623
modules/nixos/services/homeserver/grafana/dashboards/caddy.json
Normal file
2623
modules/nixos/services/homeserver/grafana/dashboards/caddy.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -67,8 +67,13 @@
|
||||||
dashboards.settings.providers = [
|
dashboards.settings.providers = [
|
||||||
{
|
{
|
||||||
name = "Node Exporter Full";
|
name = "Node Exporter Full";
|
||||||
disableDeletion = true;
|
|
||||||
options.path = ./dashboards/node-exporter-full.json;
|
options.path = ./dashboards/node-exporter-full.json;
|
||||||
|
disableDeletion = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Caddy";
|
||||||
|
options.path = ./dashboards/caddy.json;
|
||||||
|
disableDeletion = true;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -116,6 +121,14 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
job_name = "Caddy";
|
||||||
|
static_configs = [
|
||||||
|
{
|
||||||
|
targets = [ "localhost:2019" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue