Skip to content

OM2: docs: Document OpenMetrics 2.0 preview and OTel preserve_names flag #1954

Description

@zeitlinger

Part of #1912.

Add documentation for two new preview features:

OpenMetrics 2.0 (preview)

  • io.prometheus.openmetrics2.enabled=true activates the OM2 writer
    (feat: Add OpenMetrics2 enabled flag #1953)
  • OM2 outputs metric names as provided — no _total or unit suffix
    appending (unlike OM1)
  • Feature flags: contentNegotiation, compositeValues,
    exemplarCompliance, nativeHistograms
  • Programmatic: enableOpenMetrics2(om2 -> om2.contentNegotiation(true))

OTel preserve_names flag

Where to document

  • docs/content/getting-started/ or a new
    docs/content/openmetrics2/ section
  • Config reference page

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions