Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions docs/content/config/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ This works for all Metrics properties.

## OpenMetrics 2.0 Properties

<!-- editorconfig-checker-disable -->

| Name | Javadoc | Note |
| ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---- |
| io.prometheus.openmetrics2.enabled | [OpenMetrics2Properties.getEnabled()](</client_java/api/io/prometheus/metrics/config/OpenMetrics2Properties.html#getEnabled()>) | (1) |
Expand All @@ -149,8 +147,6 @@ This works for all Metrics properties.
| io.prometheus.openmetrics2.exemplar_compliance | [OpenMetrics2Properties.getExemplarCompliance()](</client_java/api/io/prometheus/metrics/config/OpenMetrics2Properties.html#getExemplarCompliance()>) | (1) |
| io.prometheus.openmetrics2.native_histograms | [OpenMetrics2Properties.getNativeHistograms()](</client_java/api/io/prometheus/metrics/config/OpenMetrics2Properties.html#getNativeHistograms()>) | (1) |

<!-- editorconfig-checker-enable -->

(1) Boolean value, `true` or `false`. `enabled=true` switches OpenMetrics responses to the OM2
writer, preserving metric names as written by the application. The other OM2 properties remain
opt-in. All OpenMetrics 2.0 flags are experimental and default to `false`.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/otel/names.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The main steps when converting OpenTelemetry metric names to Prometheus metric n
## `preserve_names`

The Prometheus Java client library can also export its own metrics to OpenTelemetry using the
[OpenTelemetryExporter](/client_java/api/io/prometheus/metrics/exporter/opentelemetry/OpenTelemetryExporter.html). <!-- editorconfig-checker-disable-line -->
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should have been removed before - and flint should not have complained now - will be fixed in next version

[OpenTelemetryExporter](/client_java/api/io/prometheus/metrics/exporter/opentelemetry/OpenTelemetryExporter.html).

For that exporter, `io.prometheus.exporter.opentelemetry.preserve_names=true` preserves metric
names exactly as they were written in the Prometheus Java client.
Expand Down
2 changes: 1 addition & 1 deletion mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ protoc = "34.1"

# Linters
actionlint = "1.7.12"
"aqua:owenlamont/ryl" = "0.6.0"
"aqua:owenlamont/ryl" = "0.7.0"
biome = "2.4.12"
editorconfig-checker = "v3.6.1"
"github:google/google-java-format" = "1.35.0"
Expand Down