Inlined Refs

作者 confluentinc914d95eff7ff無授權條款58 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫2 天前更新

Generate a Kafka consumer group lag dashboard. Use when the user asks to monitor lag, build a dashboard for consumer lag, or wire up Prometheus exporters for Kafka. Do NOT trigger for producer metrics, broker JMX, or Streams-specific monitoring.

僅含說明DevOps & Cloud
AI 產生的概覽

指導選擇 Kafka 消費者群組延遲匯出器,並設定 Grafana 儀表板與延遲告警。

功能
此技能逐步說明如何建立 Kafka 消費者群組延遲監控。它比較兩種匯出器 kafka-exporter 與 Confluent Control Center,提供設定片段以及適用叢集規模的建議。接著指定 Grafana 儀表板與預設延遲告警門檻,產出的是監控設定建議而非檔案。
適用情境
當使用者想監控 Kafka 消費者群組延遲、建立延遲儀表板,或為 Kafka 串接 Prometheus 匯出器時使用。不適用於生產者指標、broker JMX 或 Kafka Streams 專用監控。
執行需求
不含指令碼,僅為說明文件。依其操作需要 Kafka 叢集、選定的匯出器(如 kafka-exporter 或 Confluent Control Center)、Prometheus 與 Grafana,以及可連線這些服務的網路。

inlined-refs — consumer lag dashboarding

Step 1 — pick the exporter

We support two exporters. Read the comparison below before recommending.

Exporter comparison (from references/exporters.md)

kafka-exporter (Danielqsj)

Pros: lightweight, single binary, exposes per-group lag directly. Cons: stateful (consumes __consumer_offsets internally), can lag on large clusters.

Best for: clusters < 100 brokers, < 1000 consumer groups.

Config snippet:

kafka-exporter \  --kafka.server=localhost:9092 \  --kafka.version=3.5.0 \  --web.listen-address=:9308

Confluent Control Center

Pros: official, covers full Confluent Platform metrics. Cons: paid licensing, heavier footprint.

Best for: enterprise Confluent Platform users.

Step 2 — Grafana dashboard

Use Grafana dashboard 7589 for kafka-exporter. Filter by consumer group, plot kafka_consumergroup_lag over a 5-minute window.

Step 3 — alerts

Set lag > 10,000 messages for 5 minutes as the default alert. Adjust per topic SLA.

來源與署名

來源:confluentinc/agent-skills位於skills/confluent-skill-reviewer/evals/mock-skills/inlined-refs提交914d95e

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架