configuration.nix/hosts/rico0/services/apps/prometheus.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

2024-07-16 22:59:07 +05:30
_: {
2024-07-17 11:18:33 +05:30
services = {
caddy = {
virtualHosts."prometheus.labs.adtya.xyz" = {
extraConfig = ''
reverse_proxy 127.0.0.1:9090
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
2024-07-17 11:18:33 +05:30
'';
};
};
prometheus = {
enable = true;
listenAddress = "127.0.0.1";
scrapeConfigs = [
{
job_name = "node";
scheme = "https";
static_configs = [
{ targets = [ "rico0.labs.adtya.xyz" ]; }
{ targets = [ "rico1.labs.adtya.xyz" ]; }
{ targets = [ "rico2.labs.adtya.xyz" ]; }
{ targets = [ "wynne.labs.adtya.xyz" ]; }
{ targets = [ "layne.labs.adtya.xyz" ]; }
];
}
2024-07-17 11:18:33 +05:30
{
job_name = "frp";
scheme = "https";
static_configs = [
{ targets = [ "frp.labs.adtya.xyz" ]; }
];
}
{
job_name = "blocky";
2024-07-17 11:26:22 +05:30
scheme = "https";
2024-07-17 11:18:33 +05:30
static_configs = [
2024-07-17 11:26:22 +05:30
{ targets = [ "blocky.labs.adtya.xyz" ]; }
2024-07-17 11:18:33 +05:30
];
}
];
};
2024-07-16 22:59:07 +05:30
};
}