Files
clickstream-ch-kafka-supers…/configs/grafana/provisioning/datasources/prometheus.yml
T
ddadmin 5270273d8a feat(monitoring): add Grafana alert rules and fix datasource binding
- Why:
  - dashboard panels could resolve to stale datasource uid and show No data
  - monitoring required proactive alerts for ClickHouse health signals
- What:
  - pin dashboard panels to prometheus_uid and remove datasource templating variable
  - fix PromQL metrics for CPU, inserted rows, and parts panels
  - add provisioning alert rules for failed queries, memory resident, and active parts
  - pin Prometheus datasource uid and update monitoring documentation
- Check:
  - POST /api/admin/provisioning/datasources/reload
  - POST /api/admin/provisioning/dashboards/reload
  - POST /api/admin/provisioning/alerting/reload
  - GET /api/v1/provisioning/alert-rules
2026-02-08 20:49:31 +03:00

19 lines
557 B
YAML

# -----------------------------------------------------------------------------
# DataSource: Prometheus для Grafana
# Назначение: автоматическая настройка подключения к Prometheus
# -----------------------------------------------------------------------------
apiVersion: 1
datasources:
- name: Prometheus
uid: prometheus_uid
type: prometheus
access: proxy
url: http://prometheus:9090
isDefault: true
editable: false
jsonData:
timeInterval: "15s"
httpMethod: POST