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
|
2024-07-17 22:30:01 +05:30
|
|
|
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 = [
|
2024-07-18 23:06:15 +05:30
|
|
|
{
|
|
|
|
job_name = "systemd";
|
|
|
|
scheme = "https";
|
|
|
|
metrics_path = "/systemd-metrics";
|
|
|
|
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-18 22:29:43 +05:30
|
|
|
{
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|