add otel and tempo

This commit is contained in:
Charlotte 🦝 Delenk 2023-12-10 11:27:30 +01:00
parent 232be57ee4
commit 6cf40f8e24
No known key found for this signature in database
4 changed files with 51 additions and 0 deletions

View file

@ -17,6 +17,7 @@
./services/prometheus.nix
./env.nix
./tailscale.nix
./services/otel.nix
];
services.openssh.enable = true;
environment.systemPackages = with pkgs; [

View file

@ -28,6 +28,7 @@
./users/remote-build.nix
./services/kubo-local.nix
./services/nfs.nix
./services/tempo.nix
];
hardware.cpu.amd.updateMicrocode = true;

23
config/services/otel.nix Normal file
View file

@ -0,0 +1,23 @@
{
services.opentelemetry-collector = {
enable = true;
settings = {
receivers = {
otlp.protocols = {
grpc = {};
http = {};
};
jaeger.protocols = {
thrift_http = {};
grpc = {};
thrift_binary = {};
thrift_compact = {};
};
};
processors.batch = {};
exporters = {
"otlp".endpoint = "nas.int.chir.rs:4317";
};
};
};
}

26
config/services/tempo.nix Normal file
View file

@ -0,0 +1,26 @@
{lib, ...}: {
services.tempo = {
enable = true;
settings = {
server = {
http_listen_address = "0.0.0.0";
http_listen_port = 2144;
graceful_shutdown_timeout = "10s";
};
distrubtor.receiver = {
otlp.protocols = {
grpc = {};
http = {};
};
jaeger.protocols = {
thrift_http = {};
grpc = {};
thrift_binary = {};
thrift_compact = {};
};
};
storage.trace.backend = "local";
};
};
services.opentelemetry-collector.enable = lib.mkForce false;
}