Title: OM2: docs: Document OpenMetrics 2.0 preview and OTel preserve_names flag · Issue #1954 · prometheus/client_java · GitHub
Open Graph Title: OM2: docs: Document OpenMetrics 2.0 preview and OTel preserve_names flag · Issue #1954 · prometheus/client_java
X Title: OM2: docs: Document OpenMetrics 2.0 preview and OTel preserve_names flag · Issue #1954 · prometheus/client_java
Description: Part of #1912. Add documentation for two new preview features: OpenMetrics 2.0 (preview) io.prometheus.openmetrics2.enabled=true activates the OM2 writer (#1953) OM2 outputs metric names as provided — no _total or unit suffix appending (...
Open Graph Description: Part of #1912. Add documentation for two new preview features: OpenMetrics 2.0 (preview) io.prometheus.openmetrics2.enabled=true activates the OM2 writer (#1953) OM2 outputs metric names as provide...
X Description: Part of #1912. Add documentation for two new preview features: OpenMetrics 2.0 (preview) io.prometheus.openmetrics2.enabled=true activates the OM2 writer (#1953) OM2 outputs metric names as provide...
Opengraph URL: https://github.com/prometheus/client_java/issues/1954
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OM2: docs: Document OpenMetrics 2.0 preview and OTel preserve_names flag","articleBody":"Part of #1912.\n\nAdd documentation for two new preview features:\n\n## OpenMetrics 2.0 (preview)\n\n- `io.prometheus.openmetrics2.enabled=true` activates the OM2 writer\n (#1953)\n- OM2 outputs metric names as provided — no `_total` or unit suffix\n appending (unlike OM1)\n- Feature flags: `contentNegotiation`, `compositeValues`,\n `exemplarCompliance`, `nativeHistograms`\n- Programmatic: `enableOpenMetrics2(om2 -> om2.contentNegotiation(true))`\n\n## OTel `preserve_names` flag\n\n- `io.prometheus.exporter.opentelemetry.preserve_names=true` stops\n stripping `_total` and unit suffixes when pushing to OTel\n- Default `false` (legacy behavior) — will flip to `true` in next\n major release (#1943)\n\n## Where to document\n\n- `docs/content/getting-started/` or a new\n `docs/content/openmetrics2/` section\n- Config reference page","author":{"url":"https://github.com/zeitlinger","@type":"Person","name":"zeitlinger"},"datePublished":"2026-03-17T08:28:49Z","url":"https://github.com/prometheus/client_java/issues/1954"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:22996c5a-01ea-2473-c477-ccb6f24c4daf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C07E:2A1648:23074B:2E5A3F:6AFBB53F |
| html-safe-nonce | f551bce511bb2af2b750bfddf38075dbce16bfcaf3d255ab2d72ab790c35faeb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDdFOjJBMTY0ODoyMzA3NEI6MkU1QTNGOjZBRkJCNTNGIiwidmlzaXRvcl9pZCI6IjU0NjI1MzYyMTI4MzkxMTgxNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 30c54cf1fef730e16a18832bf134692b99858b9a28880880128722a0a6e08756 |
| hovercard-subject-tag | issue:4086982328 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/prometheus/client_java/1954/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4afe6157ff1259e30515217f165454afbf615202c5d687e36a99a5c2c81365c7/prometheus/client_java/issues/1954 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4afe6157ff1259e30515217f165454afbf615202c5d687e36a99a5c2c81365c7/prometheus/client_java/issues/1954 |
| og:image:alt | Part of #1912. Add documentation for two new preview features: OpenMetrics 2.0 (preview) io.prometheus.openmetrics2.enabled=true activates the OM2 writer (#1953) OM2 outputs metric names as provide... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zeitlinger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c |
| turbo-cache-control | no-preview |
| go-import | github.com/prometheus/client_java git https://github.com/prometheus/client_java.git |
| octolytics-dimension-user_id | 3380462 |
| octolytics-dimension-user_login | prometheus |
| octolytics-dimension-repository_id | 7997879 |
| octolytics-dimension-repository_nwo | prometheus/client_java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7997879 |
| octolytics-dimension-repository_network_root_nwo | prometheus/client_java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4cce0e99cf61481a318ff12c2e8580153a6c7c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width