Watch
0
0
Fork
You've already forked hyperhive
0

docs and option text: describe the sender stamp, drop the hive label

This commit is contained in:
atlas 2026-11-22 23:52:52 +01:00 • committed by mara
commit ea84d746dd
4 changed files with 69 additions and 51 deletions

View file

@ -64,8 +64,8 @@ in
description = ''
`service.name` stamped on every record. The display identity a
dashboard selects on, matching the service's scrape job name. No
`hive` label: the swarm collector stamps `swarm` from the receiver
that accepted the push.
`hive` label: the swarm collector stamps `swarm`, and `sender` from the
client id the push authenticated as.
'';
};

View file

@ -99,9 +99,9 @@ in
Whether this host runs the hive tier's collector. Not a switch:
every host that runs a hive
({option}`services.hyperhive.deploy.hive-controller.enable`) runs
one, and no other host does. It exists to stamp the `hive` label on
a hive's telemetry outside its agents' control, so a host without a
hive has nothing for it to label: the swarm services there export to
one, and no other host does. It exists to carry a hive's telemetry
to the swarm collector under the hive's own client, so a host without a
hive has nothing for it to send: the swarm services there export to
the swarm collector directly, each as its own client.
Agents export to it unauthenticated at
@ -305,7 +305,7 @@ in
description = ''
Extra comma-separated entries appended to
`OTEL_RESOURCE_ATTRIBUTES` of this hive's hive-c0re and its agents,
after the built-in `service.name` / `agent` / `hive` / `swarm` labels.
after the built-in `service.name` / `agent` / `swarm` labels.
'';
};
@ -1011,8 +1011,8 @@ in
}
Every hive authenticates as itself — that is what makes the
`hive` label on its metrics mean anything — so both are
required.
`sender` the swarm collector stamps on its metrics mean
anything — so both are required.
With the hive's store identity set
(services.hyperhive.deploy.bao.clientCertFile and clientKeyFile),

View file

@ -71,8 +71,9 @@ in
Swarm services whose own container forwards to this collector, keyed
by the route name: each gets a receiver `otlp/<name>`, an
authenticator `oidc/<name>` and a gateway location
`https://''${domain}/<name>/`, and its records land in the swarm
tier's pipelines with no `hive` label.
`https://''${domain}/<name>/`, and its records land in the pipelines
every authenticated receiver shares, stamped `sender` with its own
client id.
A receiver per producer because an `oidc` authenticator checks one
audience, and each service mints its token as its own client.

View file

@ -285,7 +285,7 @@ in
The collector names components `<kind>/<owner>` with the hive
name as owner, and `//` merges them: the swarm tier's parts
win, that hive's pipeline and `hive=` stamp disappear, and it
win, that hive's receiver and authenticator disappear, and it
keeps pushing into a route that goes nowhere.
The secret store's cert-auth roles match on a certificate's