swarm-otel: delete a sender-set sender and hive from datapoints and log records
This commit is contained in:
parent
ded017953b
commit
90a1e523fb
1 changed files with 75 additions and 18 deletions
|
|
@ -244,17 +244,20 @@ restarts and starts about 18 seconds after it. Senders retry through that window
|
|||
|
||||
**What the collector stamps.** Every authenticated receiver feeds one metrics
|
||||
pipeline and one logs pipeline. Their first processor, `resource/sender`,
|
||||
deletes any `sender` and `hive` attribute the payload carried, then sets
|
||||
`sender` from the token's `client_id` claim and `swarm` to the swarm's display
|
||||
name. `sender` is therefore the client that authenticated: `hive-<name>` for a
|
||||
hive's collector, the service's own client for a service forwarder. A token
|
||||
without the claim leaves the record with no `sender`. The collector stamps no
|
||||
`hive` label. A hive is a place an agent runs: dashboards and alerts select an
|
||||
agent by `agent` and a machine by `host.name`, and the alert `no log records
|
||||
from <hive>` selects on `sender`. Records that nothing authenticated (the
|
||||
host's journal, the collector's own journal and the Prometheus scrapes) carry
|
||||
`swarm` and no `sender`. A `batch` processor must never run before
|
||||
`resource/sender`, because a batch drops the authentication context.
|
||||
deletes any `sender` and `hive` attribute the payload carried on the resource,
|
||||
then sets `sender` from the token's `client_id` claim and `swarm` to the swarm's
|
||||
display name. `sender` is therefore the client that authenticated: `hive-<name>`
|
||||
for a hive's collector, the service's own client for a service forwarder.
|
||||
A token without the claim leaves the record with no `sender`. The collector
|
||||
stamps no `hive` label. A hive is a place an agent runs: dashboards and alerts
|
||||
select an agent by `agent` and a machine by `host.name`, and the alert
|
||||
`no log records from <hive>` selects on `sender`. Records that nothing
|
||||
authenticated (the host's journal, the collector's own journal and the
|
||||
Prometheus scrapes) carry `swarm` and no `sender`. A `batch` processor must
|
||||
never run before `resource/sender`, because a batch drops the authentication
|
||||
context. A second processor, `attributes/sender`, deletes `sender` and `hive`
|
||||
from every datapoint and log record, where a sender can set them too. Scope
|
||||
attributes stay as sent.
|
||||
|
||||
The collector fetches authelia's discovery document through the gateway when
|
||||
it starts and exits if that fails. systemd restarts it with no start limit and a
|
||||
|
|
|
|||
Loading…
Reference in a new issue