This commit is contained in:
Chris Kruining 2026-04-16 11:00:38 +02:00
parent e26e25b566
commit be2843ca80
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
65 changed files with 187 additions and 39 deletions

View file

@ -5,10 +5,10 @@ let
cfg = config.${namespace}.services.observability.alloy;
httpPort = 9700;
otlpGrpcPort = 9701;
otlpHttpPort = 9702;
tempoOtlpGrpcPort = 9602;
httpPort = 9070;
otlpGrpcPort = 9071;
otlpHttpPort = 9072;
tempoOtlpGrpcPort = 9062;
in
{
options.${namespace}.services.observability.alloy = {

View file

@ -25,7 +25,7 @@ in {
settings = {
server = {
http_port = 9100;
http_port = 9010;
http_addr = "0.0.0.0";
domain = "ulmo";
};
@ -106,7 +106,7 @@ in {
name = "Prometheus";
uid = "prometheus";
type = "prometheus";
url = "http://localhost:9200";
url = "http://localhost:9020";
isDefault = true;
editable = false;
}
@ -115,7 +115,7 @@ in {
name = "Loki";
uid = "loki";
type = "loki";
url = "http://localhost:9300";
url = "http://localhost:9030";
editable = false;
}
@ -123,7 +123,7 @@ in {
name = "Tempo";
uid = "tempo";
type = "tempo";
url = "http://localhost:9600";
url = "http://localhost:9060";
editable = false;
jsonData = {
nodeGraph.enabled = true;

View file

@ -17,7 +17,7 @@ in
auth_enabled = false;
server = {
http_listen_port = 9300;
http_listen_port = 9030;
};
common = {
@ -44,6 +44,6 @@ in
};
};
networking.firewall.allowedTCPPorts = [ 9300 ];
networking.firewall.allowedTCPPorts = [ 9030 ];
};
}

View file

@ -13,7 +13,7 @@ in
config = mkIf cfg.enable {
services.prometheus = {
enable = true;
port = 9200;
port = 9020;
extraFlags = optionals config.${namespace}.services.observability.alloy.enable [
"--web.enable-remote-write-receiver"
];
@ -24,7 +24,7 @@ in
{
job_name = "prometheus";
static_configs = [
{ targets = [ "localhost:9200" ]; }
{ targets = [ "localhost:9020" ]; }
];
}
@ -39,7 +39,7 @@ in
{
job_name = "alloy";
static_configs = [
{ targets = [ "localhost:9700" ]; }
{ targets = [ "localhost:9070" ]; }
];
}
]
@ -47,7 +47,7 @@ in
{
job_name = "tempo";
static_configs = [
{ targets = [ "localhost:9600" ]; }
{ targets = [ "localhost:9060" ]; }
];
}
];
@ -55,13 +55,13 @@ in
exporters = {
node = {
enable = true;
port = 9201;
port = 9021;
enabledCollectors = [ "systemd" ];
openFirewall = true;
};
};
};
networking.firewall.allowedTCPPorts = [ 9200 ];
networking.firewall.allowedTCPPorts = [ 9020 ];
};
}

View file

@ -25,7 +25,7 @@ in {
configuration = {
server = {
http_listen_port = 9400;
http_listen_port = 9040;
grpc_listen_port = 0;
};
@ -35,7 +35,7 @@ in {
clients = [
{
url = "http://[::1]:9300/loki/api/v1/push";
url = "http://[::1]:9030/loki/api/v1/push";
}
];
@ -60,6 +60,6 @@ in {
};
};
networking.firewall.allowedTCPPorts = [9400];
networking.firewall.allowedTCPPorts = [9040];
};
}

View file

@ -4,10 +4,10 @@ let
cfg = config.${namespace}.services.observability.tempo;
httpPort = 9600;
grpcPort = 9601;
otlpGrpcPort = 9602;
otlpHttpPort = 9603;
httpPort = 9060;
grpcPort = 9061;
otlpGrpcPort = 9062;
otlpHttpPort = 9063;
in
{
options.${namespace}.services.observability.tempo = {

View file

@ -15,11 +15,11 @@ in
enable = true;
settings = {
PORT = toString 9500;
PORT = toString 9050;
HOST = "0.0.0.0";
};
};
networking.firewall.allowedTCPPorts = [ 9500 ];
networking.firewall.allowedTCPPorts = [ 9050 ];
};
}