Files
stack/infra/grafana/dashboards/data-lake.json
kert 9741ce0a52 fix(observability): code-review remediation pass
- Trino scrape path: /v1/status (JSON) → /metrics (OpenMetrics)
- Tempo→Loki correlation: add tags mapping service.name → container
  so span clicks build {container=...} | traceID=... instead of an
  unindexed scan
- Promtail api/mail-poller/cloudflared regexes: add \b word boundaries
  so high-frequency words (error/origin/poll) don't set the labels
  on every other line
- data-lake S3 ops panel: drop `| json` (RustFS isn't JSON), use the
  s3_op stream label directly
- Add Quarkus-pair test covering the nessie|polaris combined stage

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 11:49:00 -04:00

17 lines
1.5 KiB
JSON

{
"title": "Data Lake",
"uid": "data-lake",
"tags": ["homelab", "stack"],
"timezone": "browser",
"schemaVersion": 39,
"time": {"from": "now-6h", "to": "now"},
"refresh": "30s",
"panels": [
{"id": 1, "title": "Trino queries (status)", "type": "timeseries", "gridPos": {"x": 0, "y": 0, "w": 12, "h": 8}, "datasource": {"uid": "loki"}, "targets": [{"expr": "sum by (trino_event) (rate({container=\"trino\"}[1m]))"}]},
{"id": 2, "title": "Trino query duration p95", "type": "timeseries", "gridPos": {"x": 12, "y": 0, "w": 12, "h": 8}, "datasource": {"uid": "prometheus"}, "targets": [{"expr": "histogram_quantile(0.95, sum by (le) (rate(trino_query_execution_seconds_bucket[5m])))"}]},
{"id": 3, "title": "Nessie/Polaris HTTP rate", "type": "timeseries", "gridPos": {"x": 0, "y": 8, "w": 12, "h": 8}, "datasource": {"uid": "prometheus"}, "targets": [{"expr": "sum by (job) (rate(http_server_requests_seconds_count{job=~\"nessie|polaris\"}[1m]))"}]},
{"id": 4, "title": "Nessie/Polaris error rate", "type": "timeseries", "gridPos": {"x": 12, "y": 8, "w": 12, "h": 8}, "datasource": {"uid": "prometheus"}, "targets": [{"expr": "sum by (job) (rate(http_server_requests_seconds_count{job=~\"nessie|polaris\",status=~\"5..\"}[1m]))"}]},
{"id": 5, "title": "RustFS S3 ops by op", "type": "timeseries", "gridPos": {"x": 0, "y": 16, "w": 24, "h": 8}, "datasource": {"uid": "loki"}, "targets": [{"expr": "sum by (s3_op) (rate({container=\"rustfs\", s3_op!~\"\"}[1m]))"}]}
]
}