cluster/services/monitoring: make tempo otlp receivers externally accessible

This commit is contained in:
Max Headroom 2023-06-02 17:35:53 +02:00
parent 7d327d402b
commit d0ec0c4f82
2 changed files with 11 additions and 5 deletions

View file

@ -20,6 +20,14 @@ in
protocol = "http";
ipv4 = meshIpFor "server";
};
tempo-otlp-http = {
protocol = "http";
ipv4 = meshIpFor "server";
};
tempo-otlp-grpc = {
protocol = "http";
ipv4 = meshIpFor "server";
};
};
services.monitoring = {
nodes = {

View file

@ -2,7 +2,7 @@
let
inherit (config) links;
inherit (cluster.config.links) prometheus-ingest;
inherit (cluster.config.links) prometheus-ingest tempo-otlp-http tempo-otlp-grpc;
dataDir = "/srv/storage/private/tempo";
tempoConfig = {
server = {
@ -13,8 +13,8 @@ let
};
distributor.receivers.otlp = {
protocols = {
http.endpoint = links.tempo-otlp-http.tuple;
grpc.endpoint = links.tempo-otlp-grpc.tuple;
http.endpoint = tempo-otlp-http.tuple;
grpc.endpoint = tempo-otlp-grpc.tuple;
};
};
ingester = {
@ -63,8 +63,6 @@ in {
links = {
tempo.protocol = "http";
tempo-grpc.protocol = "http";
tempo-otlp-http.protocol = "http";
tempo-otlp-grpc.protocol = "http";
};
users.users.tempo = {