Watch
0
0
Fork
You've already forked hyperhive
0

container collectors scrape their own telemetry and push it up their hop

This commit is contained in:
atlas 2026-10-28 22:01:33 +01:00 • committed by mara
commit 73c966a7eb
2 changed files with 163 additions and 49 deletions

View file

@ -4575,25 +4575,6 @@ in
exporters = [ "otlphttp" ];
};
# Moves this collector's self-metrics off the built-in
# default of `localhost:8888`, which the hive tier holds —
# this container shares the host's netns, so leaving the
# default in place is the hive collector failing to bind.
#
# ⚠️ `metrics.address` is the spelling that looks right and
# is REJECTED by this collector version:
# `'migration.MetricsConfigV030' has invalid keys:
# address`. `readers` is the schema it accepts, and the
# difference is a startup failure rather than a warning.
service.telemetry.metrics.readers = [
{
pull.exporter.prometheus = {
host = "127.0.0.1";
port = cfg.otel.telemetryPort;
};
}
];
# An extension configured but not listed here is INERT — the
# receiver's `storage: file_storage` above would name a
# component the collector never starts, and the exporter's
@ -4606,6 +4587,15 @@ in
};
};
# Off the built-in default of `localhost:8888`, which the hive tier
# holds: this container shares the host's netns.
services.opentelemetry-collector.settings = import ../collector-self-scrape.nix {
inherit lib;
port = cfg.otel.telemetryPort;
exporter = "otlphttp";
attributes.container = collectorServiceName;
};
# How the secret crosses the sandbox. The host unit
# `swarm-bao-forwarder-oidc` leaves a root-owned 0400 file at this
# path on the host's /run, which the container bind-mounts

View file

@ -1,7 +1,7 @@
{
"title": "hyperhive \u00b7 collector (self-telemetry)",
"uid": "hyperhive-swarm-collector",
"description": "What the OTEL collectors accept, refuse, export and queue. Port 8888 is the hive, 8889 swarm-otel.",
"description": "OTEL collectors: accepted, refused, exported, queued. 8888 hive, 8889 swarm, others containers.",
"editable": true,
"refresh": "1m",
"schemaVersion": 39,