Robustmq metrics

From robustmq/robustmq · View interactive version

Robustmq metrics is an AI agent skill from the GitHub repository robustmq/robustmq. Designs and implements minimal, high-value metrics for RobustMQ services and dashboards. Use when the user asks to add metrics, improve observability, or update Grafana panels for core processing pipelines.

How to use this skill

Skill file

RobustMQ Metrics

Purpose

Add observability with minimal but complete coverage of a target pipeline:

Do not over-instrument. Prefer compact metrics that support operations and debugging.

Metric Design Rules

  1. Cover chain, not everything:
  1. Always include count and latency for processing path.
  1. Label policy:
  1. Naming:

Minimal Metric Set Template

Adapt this template to the target module:

Implementation Workflow

  1. Define metrics in src/common/metrics
  1. Insert runtime instrumentation
  1. Fix call sites impacted by signature changes
  1. Validation

Grafana Decision Rule

After metrics are added, decide whether to update grafana/robustmq-broker.json:

When updating dashboard:

Output Format

Return:

  1. Metrics added/changed (names + labels)
  2. Instrumentation points (files/functions)
  3. Whether Grafana was updated and why
  4. Validation commands and results

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.