Telemetry for WindoM on the same small cluster
An authenticated OTLP endpoint, a collector that strips personal data, Loki and Tempo with short retention, and alerts by email
WindoM's API sends its logs, metrics and traces to the cluster over OTLP. The collector removes personal data before anything is stored, retention is short by design, and five alert rules send email.
WindoM's API runs elsewhere, but its telemetry needed a home, and the cluster already had Prometheus, Grafana and Alertmanager. This change gave it the rest: a public endpoint to send to, somewhere to keep logs and traces, and alerts that reach a person.
The pipeline
with a wrong one, are refused. The body size is capped and the endpoint is rate-limited as a whole.
scrapes the collector for metrics. Retention is short on purpose: this is for finding a problem this week, not for keeping a record.
server errors, the database pool and recent errors.
Privacy before storage
The collector removes personal data before anything is written: client addresses, email addresses, user ids and authorization headers are dropped, and tokens are stripped from URLs. This was checked, not assumed: in a local run of the real configuration, none of those fields reached Loki or Tempo.
Decisions along the way
so Prometheus gains no new write endpoint that any pod could use.
is already version-controlled in this repository. The rules sit next to the data they read.
of server errors, no logs at all for half an hour, and the collector refusing or dropping data. Only WindoM's alerts are sent by email.
Locked down by default
The telemetry stack has its own namespace under the Kubernetes restricted Pod Security level, and its NetworkPolicies deny all traffic by default, with one rule for each flow the pipeline actually needs.