Change observability service ports and add Arrtrix content management
- Update ports for Alloy, Grafana, Loki, Prometheus, Promtail, Tempo, and Uptime Kuma to new ranges - Add Arrtrix content management commands and subscriptions - Implement Radarr and Sonarr client logic for movie and series management - Add matrix commands for download and subscription management - Add subscription repository with database schema and logic - Update Arrtrix config and example config for content section - Update help text and command processor to include new commands - Update vendor hash for Arrtrix package
This commit is contained in:
parent
9b93f017b6
commit
e26e25b566
24 changed files with 1340 additions and 82 deletions
|
|
@ -5,10 +5,10 @@ let
|
|||
|
||||
cfg = config.${namespace}.services.observability.alloy;
|
||||
|
||||
httpPort = 9007;
|
||||
otlpGrpcPort = 9010;
|
||||
otlpHttpPort = 9011;
|
||||
tempoOtlpGrpcPort = 9009;
|
||||
httpPort = 9700;
|
||||
otlpGrpcPort = 9701;
|
||||
otlpHttpPort = 9702;
|
||||
tempoOtlpGrpcPort = 9602;
|
||||
in
|
||||
{
|
||||
options.${namespace}.services.observability.alloy = {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ in {
|
|||
|
||||
settings = {
|
||||
server = {
|
||||
http_port = 9001;
|
||||
http_port = 9100;
|
||||
http_addr = "0.0.0.0";
|
||||
domain = "ulmo";
|
||||
};
|
||||
|
|
@ -106,7 +106,7 @@ in {
|
|||
name = "Prometheus";
|
||||
uid = "prometheus";
|
||||
type = "prometheus";
|
||||
url = "http://localhost:9002";
|
||||
url = "http://localhost:9200";
|
||||
isDefault = true;
|
||||
editable = false;
|
||||
}
|
||||
|
|
@ -115,7 +115,7 @@ in {
|
|||
name = "Loki";
|
||||
uid = "loki";
|
||||
type = "loki";
|
||||
url = "http://localhost:9003";
|
||||
url = "http://localhost:9300";
|
||||
editable = false;
|
||||
}
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ in {
|
|||
name = "Tempo";
|
||||
uid = "tempo";
|
||||
type = "tempo";
|
||||
url = "http://localhost:9006";
|
||||
url = "http://localhost:9600";
|
||||
editable = false;
|
||||
jsonData = {
|
||||
nodeGraph.enabled = true;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ in
|
|||
auth_enabled = false;
|
||||
|
||||
server = {
|
||||
http_listen_port = 9003;
|
||||
http_listen_port = 9300;
|
||||
};
|
||||
|
||||
common = {
|
||||
|
|
@ -44,6 +44,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 9003 ];
|
||||
networking.firewall.allowedTCPPorts = [ 9300 ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
port = 9002;
|
||||
port = 9200;
|
||||
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:9002" ]; }
|
||||
{ targets = [ "localhost:9200" ]; }
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ in
|
|||
{
|
||||
job_name = "alloy";
|
||||
static_configs = [
|
||||
{ targets = [ "localhost:9007" ]; }
|
||||
{ targets = [ "localhost:9700" ]; }
|
||||
];
|
||||
}
|
||||
]
|
||||
|
|
@ -47,7 +47,7 @@ in
|
|||
{
|
||||
job_name = "tempo";
|
||||
static_configs = [
|
||||
{ targets = [ "localhost:9006" ]; }
|
||||
{ targets = [ "localhost:9600" ]; }
|
||||
];
|
||||
}
|
||||
];
|
||||
|
|
@ -55,13 +55,13 @@ in
|
|||
exporters = {
|
||||
node = {
|
||||
enable = true;
|
||||
port = 9005;
|
||||
port = 9201;
|
||||
enabledCollectors = [ "systemd" ];
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 9002 ];
|
||||
networking.firewall.allowedTCPPorts = [ 9200 ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ in {
|
|||
|
||||
configuration = {
|
||||
server = {
|
||||
http_listen_port = 9004;
|
||||
http_listen_port = 9400;
|
||||
grpc_listen_port = 0;
|
||||
};
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ in {
|
|||
|
||||
clients = [
|
||||
{
|
||||
url = "http://[::1]:9003/loki/api/v1/push";
|
||||
url = "http://[::1]:9300/loki/api/v1/push";
|
||||
}
|
||||
];
|
||||
|
||||
|
|
@ -60,6 +60,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [9004];
|
||||
networking.firewall.allowedTCPPorts = [9400];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ let
|
|||
|
||||
cfg = config.${namespace}.services.observability.tempo;
|
||||
|
||||
httpPort = 9006;
|
||||
grpcPort = 9008;
|
||||
otlpGrpcPort = 9009;
|
||||
otlpHttpPort = 9012;
|
||||
httpPort = 9600;
|
||||
grpcPort = 9601;
|
||||
otlpGrpcPort = 9602;
|
||||
otlpHttpPort = 9603;
|
||||
in
|
||||
{
|
||||
options.${namespace}.services.observability.tempo = {
|
||||
|
|
|
|||
|
|
@ -15,11 +15,11 @@ in
|
|||
enable = true;
|
||||
|
||||
settings = {
|
||||
PORT = toString 9006;
|
||||
PORT = toString 9500;
|
||||
HOST = "0.0.0.0";
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 9006 ];
|
||||
networking.firewall.allowedTCPPorts = [ 9500 ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue