Working crowdsec AND prometheus config
Some checks are pending
/ Build Nix targets (push) Waiting to run

This commit is contained in:
Théo Barnouin 2025-04-14 15:05:10 +02:00
parent 6d7d5578c4
commit 0638a5d2e6
3 changed files with 48 additions and 26 deletions

View file

@ -137,14 +137,6 @@ in {
} }
]; ];
} }
{
job_name = "crowdsec_authentik";
static_configs = [
{
targets = ["192.168.1.125:6060"];
}
];
}
{ {
job_name = "nginx"; job_name = "nginx";
static_configs = [ static_configs = [
@ -153,14 +145,6 @@ in {
} }
]; ];
} }
{
job_name = "crowdsec_nginx";
static_configs = [
{
targets = ["${cfg.proxy_ip}:6060"];
}
];
}
{ {
job_name = "redis"; job_name = "redis";
static_configs = [ static_configs = [
@ -201,14 +185,6 @@ in {
} }
]; ];
} }
{
job_name = "crowdsec_nextcloud";
static_configs = [
{
targets = ["192.168.1.45:6060"];
}
];
}
{ {
job_name = "jellyfin"; job_name = "jellyfin";
static_configs = [ static_configs = [
@ -226,14 +202,60 @@ in {
} }
]; ];
} }
{
job_name = "crowdsec_authentik";
metrics_path = "/metrics";
static_configs = [
{
targets = ["192.168.1.125:6060"];
}
];
}
{
job_name = "crowdsec_nextcloud";
metrics_path = "/metrics";
static_configs = [
{
targets = ["192.168.1.45:6060"];
}
];
}
{
job_name = "crowdsec_nginx";
metrics_path = "/metrics";
static_configs = [
{
targets = ["${cfg.proxy_ip}:6060"];
}
];
}
{ {
job_name = "crowdsec_jellyfin"; job_name = "crowdsec_jellyfin";
metrics_path = "/metrics";
static_configs = [ static_configs = [
{ {
targets = ["192.168.1.42:6060"]; targets = ["192.168.1.42:6060"];
} }
]; ];
} }
{
job_name = "crowdsec_forgejo";
metrics_path = "/metrics";
static_configs = [
{
targets = ["192.168.1.14:6060"];
}
];
}
{
job_name = "crowdsec_grafana";
metrics_path = "/metrics";
static_configs = [
{
targets = ["192.168.1.27:6060"];
}
];
}
]; ];
}; };
loki = { loki = {

View file

@ -14,7 +14,7 @@
networking = { networking = {
firewall = { firewall = {
enable = true; enable = true;
allowedTCPPorts = [22 9002]; allowedTCPPorts = [22 6060 9002];
}; };
}; };

View file

@ -13,7 +13,7 @@
networking = { networking = {
firewall = { firewall = {
enable = true; enable = true;
allowedTCPPorts = [22 9002]; allowedTCPPorts = [22 6060 9002];
}; };
}; };