Token导航 LogoToken导航TokenDH.com
开发external-servicegithub未标认证来源可访问许可证需确认审计提醒

otel-name-metric酒店名称 度量标准

Agent Skill

otel-name-metric 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

485

周安装

20

GitHub Stars

公开资料未说明

下载量

158
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:otel-name-metric(酒店名称 度量标准)
来源仓库:https://github.com/trogonstack/agentskills
仓库路径:skills/otel-name-metric
安装命令:
npx skills add https://github.com/trogonstack/agentskills --skill otel-name-metric
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/trogonstack/agentskills --skill otel-name-metric

简介

otel-name-metric 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态或代码变更进行整理。
  • 通过 npx skills add 命令从指定仓库安装,需结合 README 确认具体用法。
  • 安装前建议核实权限范围、维护状态及是否涉及联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Review or Create OpenTelemetry Metric Names

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.

Core Principle

The metric name identifies what you are measuring. Everything else — who is measuring, where it runs, which version — belongs in attributes or resource attributes.

Metric Name Patterns

The OTel spec defines these patterns for metric names:

Default Pattern: {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

Client/Server Pattern: {area}.{client|server}.{metric_name}

Use when the communication side is ambiguous for a given {area} and {metric_name}.

  • Include client or server when both perspectives exist (e.g., http.server.* vs http.client.*)
  • Omit when the system name implies the side (e.g., kestrel is always a server)
  • Omit when the metric name implies the side (e.g., messaging.process is always consumer)

Examples: http.server.request.duration, db.client.operation.duration

System-Specific Pattern: {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

How Segments Work

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.

Name vs Attributes

If a dimension changes what is being measured → put it in the metric name. If it changes who/where/when → put it in attributes.

DimensionGoes in...Why
Protocol domain (http, db)NameChanges what you're measuring
Communication side (client, server)Name (when ambiguous)Changes the perspective
Entity and property (request.duration)NameChanges what is captured
Service nameResource attributeSame metric across services
EnvironmentResource attributeSame metric across envs
VersionResource attributeSame metric across versions
HTTP method, routeMetric attributeFilters within the same metric
Technology stackNowhere in nameWon't survive language migrations
Unit (ms, bytes)Unit metadata fieldUCUM standard, not in name

Naming Format

  • Lowercase with dot-delimited namespaces
  • snake_case within segments: http.response.status_code
  • Must start with a letter, end with alphanumeric
  • No consecutive delimiters (.., __, ._)
  • Printable Basic Latin only (U+0021–U+007E)

Measurement Suffixes

SuffixMeaningExample
entity.limitKnown total amountsystem.memory.limit
entity.usageAmount used from known totalsystem.memory.usage
entity.utilizationFraction of usage/limit (0–1)system.memory.utilization
entity.timePassage of timesystem.cpu.time
entity.ioBidirectional data flowsystem.network.io

Pluralization Rules

  • Pluralize Counters for discrete countable instances: system.paging.faults, system.disk.operations
  • Do NOT pluralize utilization, duration, time: system.filesystem.utilization
  • UpDownCounter names SHOULD NOT be pluralized: system.process.count not system.processes
  • Never append _total — confuses meaning in delta backends

Unit Conventions (UCUM)

  • Units go in metadata, NOT in metric names
  • Use non-prefixed units: By not MiBy
  • Durations: use seconds (s)
  • Utilization: dimensionless, unit 1
  • Curly brace annotations match grammatical number: {request} not {requests}
  • Case-sensitive: Cel for degree Celsius

Attribute Naming

  • Pattern: {object}.{property} with dot separators
  • Lowercase, snake_case within segments
  • Namespace related attributes together: order.id, order.total, order.status
  • Keep names stable; let values carry dynamic data
  • Do NOT put user IDs, request IDs, or IP addresses as metric attributes — cardinality explosion

Reference Material

Detailed guidance on specific topics is in the references/ directory. Read these when the task requires deeper context:

  • namespaces.md — Full catalog of official namespace roots, worked examples showing which pattern each metric uses, custom namespace guidelines
  • instruments.md — Instrument selection decision tree, additivity rules, sync vs async, UpDownCounter consistency
  • anti-patterns.md — Bad→good naming examples, attribute anti-patterns, cardinality traps

Review Checklist

When reviewing metric definitions, verify:

  1. Name uses dot-delimited lowercase snake_case
  2. No unit, service name, environment, or version in the metric name
  3. Correct instrument type for the measurement
  4. Unit in metadata field, following UCUM
  5. Pluralization matches the instrument type
  6. No _total suffix
  7. Custom names don't collide with otel.* or existing semantic convention namespaces
  8. Attributes follow {object}.{property} format
  9. No high-cardinality values in metric attributes
  10. UpDownCounter increments/decrements use matching attribute values

Output

Provide:

  • List of metrics reviewed with pass/fail per checklist item
  • Suggested corrections for any violations
  • Instrument type recommendation if missing or incorrect
  • Attribute placement corrections (name → resource → metric attribute)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.96%
按下载量换算62

Claude

28.61%
按下载量换算45

Cursor

17.63%
按下载量换算28

Gemini CLI

9.54%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills