2022-08-03 23:36:11 +02:00
|
|
|
{ config, ... }:
|
|
|
|
|
2023-05-09 23:13:30 +02:00
|
|
|
let
|
|
|
|
nodeFor = nodeType: builtins.head config.services.monitoring.nodes.${nodeType};
|
|
|
|
|
|
|
|
meshIpFor = nodeType: config.vars.mesh.${nodeFor nodeType}.meshIp;
|
|
|
|
in
|
|
|
|
|
2022-08-03 23:36:11 +02:00
|
|
|
{
|
|
|
|
links = {
|
|
|
|
loki-ingest = {
|
|
|
|
protocol = "http";
|
2023-05-09 23:13:30 +02:00
|
|
|
ipv4 = meshIpFor "logging";
|
|
|
|
};
|
|
|
|
loki = {
|
|
|
|
protocol = "http";
|
|
|
|
ipv4 = meshIpFor "logging";
|
2022-08-03 23:36:11 +02:00
|
|
|
};
|
2023-05-26 16:26:24 +02:00
|
|
|
prometheus-ingest = {
|
|
|
|
protocol = "http";
|
|
|
|
ipv4 = meshIpFor "server";
|
|
|
|
};
|
2022-08-03 23:36:11 +02:00
|
|
|
};
|
|
|
|
services.monitoring = {
|
|
|
|
nodes = {
|
2023-03-21 23:51:02 +01:00
|
|
|
client = [ "checkmate" "thunderskin" "VEGAS" "prophet" ];
|
2023-05-27 13:44:31 +02:00
|
|
|
blackbox = [ "checkmate" "VEGAS" "prophet" ];
|
2023-05-09 23:13:30 +02:00
|
|
|
logging = [ "VEGAS" ];
|
|
|
|
server = [ "VEGAS" ];
|
2022-08-03 23:36:11 +02:00
|
|
|
};
|
|
|
|
nixos = {
|
|
|
|
client = ./client.nix;
|
2023-05-27 13:44:31 +02:00
|
|
|
blackbox = ./blackbox.nix;
|
2023-05-09 23:13:30 +02:00
|
|
|
logging = ./logging.nix;
|
|
|
|
server = [
|
|
|
|
./server.nix
|
|
|
|
./tracing.nix
|
2023-06-01 00:12:31 +02:00
|
|
|
./provisioning/dashboards.nix
|
2023-05-09 23:13:30 +02:00
|
|
|
];
|
2022-08-03 23:36:11 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|