Skip to content

Commit 219065f

Browse files
committed
docs: gardener logging and alloy metrics
1 parent 1e9798b commit 219065f

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

docs/04-For Operators/05-monitoring.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ All control-plane log entries carry a `cluster` label (configured via `logging_a
3636

3737
#### Gardener
3838

39-
The [gardener-logging](https://github.com/metal-stack/metal-roles/blob/master/control-plane/roles/gardener-logging/README.md) role deploys an additional Alloy instance into each Gardener shooted seed and optionally into the garden cluster itself. These instances collect pod logs from their respective clusters and forward them to the same Loki instance in the metal-stack control plane. Logs carry a `cluster` label set to the shooted seed name, enabling per-seed filtering in Grafana.
39+
Gardener ships with a built-in logging stack (Vali + fluent-bit per seed). The metal-stack deployment disables this stack and instead uses Alloy to forward all logs centrally — giving platform operators a single place to query infrastructure logs across all Gardener clusters.
40+
41+
The [gardener-logging](https://github.com/metal-stack/metal-roles/blob/master/control-plane/roles/gardener-logging/README.md) role deploys an Alloy instance into each Gardener shooted seed and optionally into the garden cluster itself. These instances collect pod logs and Kubernetes events from their respective clusters and forward them to the same Loki instance in the metal-stack control plane. Logs carry a `cluster` label set to the cluster name (garden name or shooted seed name), enabling per-cluster filtering in Grafana.
4042

4143
### Control-Plane: Querying Logs in Grafana
4244

4345
- `{cluster="<stage-name>"}` — all logs from a control-plane stage
4446
- `{namespace="<namespace>"}` — all logs from a specific namespace
4547
- `{job="<namespace>/<app>"}` — logs from a specific application
4648
- `{job="monitoring/event-exporter"}` — Kubernetes events
47-
- `{cluster="<seed-name>"}` — all logs from a specific Gardener shooted seed
49+
- `{cluster="<garden-or-seed-name>"}` — all logs from the Gardener garden cluster or a specific shooted seed
4850

4951
### Partition Log Sources
5052

@@ -87,16 +89,14 @@ control plane.
8789
### Control-Plane Metrics
8890

8991
In-cluster components are scraped by Prometheus via `ServiceMonitor` resources (pull model).
90-
Alloy self-metrics use a different approach — no ServiceMonitor required:
91-
92-
- The **control-plane Alloy** DaemonSet pushes metrics via `prometheus.remote_write` to the in-cluster Thanos Receive. Wired automatically when `monitoring_thanos_receive_enabled: true`.
93-
- **Gardener seed Alloy** instances have no local Prometheus, so they push metrics to the control-plane Thanos Receive ingress instead. Wired automatically when `monitoring_thanos_receive_ingress_enabled: true`.
9492

9593
Metrics are supplied by
9694

9795
- `metal-metrics-exporter`
9896
- `rethinkdb-exporter`
9997
- `gardener-metrics-exporter`
98+
- `alloy` (control-plane) — self-metrics, disabled by default; see the [logging role](https://github.com/metal-stack/metal-roles/blob/master/control-plane/roles/logging/README.md#meta-monitoring) for configuration
99+
- `alloy` (gardens and seeds) — self-metrics, disabled by default; see the [gardener-logging role](https://github.com/metal-stack/metal-roles/blob/master/control-plane/roles/gardener-logging/README.md#meta-monitoring) for configuration
100100

101101
The following `ServiceMonitors` are deployed:
102102

docs/04-For Operators/monitoring-stack.drawio.svg

Lines changed: 11 additions & 11 deletions
Loading

0 commit comments

Comments
 (0)