- 01-turn-server-setup.md: TURN Server architecture, deployment, verification - 02-authentik-identity-provider.md: Two-stage OIDC integration (Stage 1 & Stage 2) - 03-monitoring-integration.md: Alloy, Prometheus, Loki integration with Selendis - 04-element-customization.md: Custom themes (7), desktop setup scripts, admin panel - 05-room-policies.md: Message retention, room publication, auto-join policies All guides include troubleshooting, configuration examples, and best practices. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
53 lines
1.4 KiB
Markdown
53 lines
1.4 KiB
Markdown
# Monitoring: Alloy → Prometheus/Loki auf Selendis
|
|
|
|
**Status**: ✅ Vollständig deployed
|
|
**Remote Storage**: `10.0.0.3:9090` (Prometheus), `10.0.0.3:3100` (Loki)
|
|
|
|
## Überblick
|
|
|
|
Alloy (Grafana Agent) sammelt Metriken & Logs vom K3S-Cluster und schickt sie zu Prometheus/Loki auf Selendis.
|
|
|
|
## Komponenten
|
|
|
|
| Komponente | Rolle |
|
|
|-----------|-------|
|
|
| **Alloy** | Metrics & Logs Collector |
|
|
| **kube-state-metrics** | Kubernetes Object Status |
|
|
| **node-exporter** | Host Metrics (CPU, Memory, Disk) |
|
|
| **Prometheus** (Selendis) | Metrics Ingestion |
|
|
| **Loki** (Selendis) | Logs Ingestion |
|
|
|
|
## Dateien (in `apps/monitoring/`)
|
|
|
|
- `namespace.yaml`
|
|
- `helm-repos.yaml` (prometheus-community, grafana)
|
|
- `kube-state-metrics.yaml`, `node-exporter.yaml`
|
|
- `alloy-config.yaml` (River config with scrape targets + remote write)
|
|
- `alloy.yaml` (HelmRelease)
|
|
|
|
## Scrape Targets
|
|
|
|
Alloy scraped:
|
|
- **Flux Controllers** (flux-system ns, port 8080)
|
|
- **kube-state-metrics** (monitoring:8080)
|
|
- **node-exporter** (monitoring:9100)
|
|
- **Synapse** (matrix.axion1337.chat:9000)
|
|
|
|
Alle Remote Write zu `10.0.0.3:9090` (Prometheus) + `10.0.0.3:3100` (Loki).
|
|
|
|
## Troubleshooting
|
|
|
|
```bash
|
|
# Check Alloy Logs
|
|
kubectl logs -n monitoring -l app.kubernetes.io/name=alloy
|
|
|
|
# Check Prometheus remote write
|
|
curl http://10.0.0.3:9090/api/v1/query?query=up
|
|
|
|
# Loki test
|
|
curl -s http://10.0.0.3:3100/loki/api/v1/query_range?query=%7B%7D | jq .
|
|
```
|
|
|
|
---
|
|
**Weitere Details**: Siehe Kapitel 3.
|