Adding a Metric

Official

Add or tune microservice metrics with ease.

Authormicrobus-io
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps engineering teams create or modify custom metrics for microservices to gain visibility into runtime behavior and performance, reducing guesswork and enabling data-driven decisions.

Core Features & Use Cases

  • Metric definition & boilerplate generation: Define a metric in the service.yaml and generate the related boilerplate code.
  • Runtime instrumentation: Record metric values from service logic to monitor throughput, latency, and error rates.
  • Use Case: When you need to track a customer operation, like processing batches or cache hits, across a microservice to understand bottlenecks and reliability.

Quick Start

Define a new metric in your microservice's service.yaml, run go generate to produce the boilerplate, implement the setter (e.g., AddMyMetric) and optional callback, then observe metrics in your monitoring stack.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Adding a Metric
Download link: https://github.com/microbus-io/fabric/archive/main.zip#adding-a-metric

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.