Skip to content

docs(metrics): document eval metric name prefixing convention#950

Merged
chaholl merged 1 commit intomainfrom
docs/948-eval-metric-prefixing
Apr 12, 2026
Merged

docs(metrics): document eval metric name prefixing convention#950
chaholl merged 1 commit intomainfrom
docs/948-eval-metric-prefixing

Conversation

@chaholl
Copy link
Copy Markdown
Contributor

@chaholl chaholl commented Apr 12, 2026

Summary

Add "Metric Name Prefixing" section to the metrics reference explaining:

  • How eval metric names are auto-prefixed with {namespace}_eval_
  • The deduplication behavior (names already starting with the prefix are not re-prefixed)
  • How the namespace is configured (CollectorOpts.Namespace)
  • PromQL examples for querying eval vs pipeline metrics
  • How auto-generated metrics work when no metric field is defined

Audit findings

The existing metrics docs are comprehensive — all 11 pipeline metrics are documented, eval metric types/labels/scoring are well-covered. The only gap was the prefixing convention, which was mentioned in passing (line 124: "auto-prefixed if not already") but never fully explained with examples.

No duplication issues found — the three docs pages (reference, how-to, SDK) each contextualize the same information appropriately for different audiences.

Closes #948

Add a "Metric Name Prefixing" section to the metrics reference
explaining how eval metric names are auto-prefixed with
{namespace}_eval_, the deduplication behavior that prevents
double-prefixing, and how the namespace is configured.

Includes PromQL examples for querying eval vs pipeline metrics.

Closes #948
@chaholl chaholl merged commit a80a38e into main Apr 12, 2026
3 checks passed
@chaholl chaholl deleted the docs/948-eval-metric-prefixing branch April 12, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: document eval metric name prefixing convention

1 participant