/trogonstack-otel:otel-name-metricfrom trogonstack-otel
Reviews or creates OpenTelemetry metric names following semantic conventions. Validates naming format, units, instrument selection, and attribute placement. Use when designing new metrics, reviewing existing instrumentation, or auditing metric naming consistency.
Ships in trogonstack-otel. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Review or create metric names that follow OTel Semantic Conventions, ensuring correct naming format, instrument selection, unit placement, and attribute separation.
Before applying any rule below, fetch the latest naming guidance to check for updates:
If the fetched content contradicts any rule in this skill, follow the fetched content and flag the discrepancy.
The metric name identifies what you are measuring. Everything else — who is measuring, where it runs, which version — belongs in attributes or resource attributes.
The OTel spec defines these patterns for metric names:
{area}.{metric_name}Use when the area or metric name already implies the communication side.
Examples: system.memory.usage, kestrel.connection.duration, messaging.process.duration
{area}.{client|server}.{metric_name}Use when the communication side is ambiguous for a given {area} and {metric_name}.
client or server when both perspectives exist (e.g., http.server.* vs http.client.*)kestrel is always a server)messaging.process is always consumer)Examples: http.server.request.duration, db.client.operation.duration
{system_name}.*.{metric_name}Use when a metric is specific to a system, project, or provider.
Examples: azure.cosmosdb.client.operation.request_charge, jvm.gc.duration
Metric names use dot-delimited namespaces where each dot adds specificity. Namespaces can be nested — there is no fixed number of segments. Real metrics range from 2 segments (system.uptime) to 6 segments (azure.cosmosdb.client.operation.request_charge).
Follow the {object}.{property} principle: be precise. Use system.network.packet.dropped instead of system.network.dropped.
If a dimension changes what is being measured → put it in the metric name. If it changes who/where/when → put it in attributes.
| Dimension | Goes in... | Why |
|---|---|---|
Protocol domain (http, db) | Name | Changes what you're measuring |
Communication side (client, server) | Name (when ambiguous) | Changes the perspective |
Entity and property (request.duration) | Name | Changes what is captured |
| Service name | Resource attribute | Same metric across services |
| Environment | Resource attribute | Same metric across envs |
| Version | Resource attribute | Same metric across versions |
| HTTP method, route | Metric attribute | Filters within the same metric |
| Technology stack | Nowhere in name | Won't survive language migrations |
Unit (ms, bytes) | Unit metadata field | UCUM standard, not in name |
http.response.status_code.., __, ._)| Suffix | Meaning | Example |
|---|---|---|
entity.limit | Known total amount | system.memory.limit |
entity.usage | Amount used from known total | system.memory.usage |
entity.utilization | Fraction of usage/limit (0–1) | system.memory.utilization |
entity.time | Passage of time | system.cpu.time |
entity.io | Bidirectional data flow | system.network.io |
system.paging.faults, system.disk.operationssystem.filesystem.utilizationsystem.process.count not system.processes_total — confuses meaning in delta backendsBy not MiBys)1{request} not {requests}Cel for degree Celsius{object}.{property} with dot separatorsorder.id, order.total, order.statusDetailed guidance on specific topics is in the references/ directory. Read these when the task requires deeper context:
When reviewing metric definitions, verify:
_total suffixotel.* or existing semantic convention namespaces{object}.{property} formatProvide:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub trogonstack/agentskills --plugin trogonstack-otelOther plugins' skills for the same job