viola: upstream

Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
s0me1newithhand7s 2026-03-25 18:48:47 +03:00
parent bcb7f2dcb0
commit 793b14918a
34 changed files with 1320 additions and 326 deletions

90
viola/services/tempo.nix Normal file
View file

@ -0,0 +1,90 @@
_: {
services = {
tempo = {
enable = true;
settings = {
server = {
http_listen_port = 3200;
grpc_listen_port = 9096;
};
distributor = {
receivers = {
otlp = {
protocols = {
grpc = {
endpoint = "0.0.0.0:4317";
};
http = {
endpoint = "0.0.0.0:4318";
};
};
};
};
};
ingester = {
lifecycler = {
ring = {
replication_factor = 1;
};
};
};
storage = {
trace = {
backend = "local";
local = {
path = "/var/lib/tempo/blocks";
};
block = {
version = "vParquet4";
};
wal = {
path = "/var/lib/tempo/wal";
};
};
};
compactor = {
compaction = {
block_retention = "720h";
};
};
metrics_generator = {
registry = {
external_labels = {
source = "tempo";
};
};
storage = {
path = "/var/lib/tempo/generator";
remote_write = [
{
url = "http://127.0.0.1:9009/api/v1/push";
}
];
};
};
overrides = {
defaults = {
metrics_generator = {
processors = [
"service-graphs"
"span-metrics"
"local-blocks"
];
};
};
};
};
};
};
}