* UnderscoreEscapingWithSuffixes, the default. This fully escapes metric names for classic Prometheus metric name compatibility, and includes appending type and unit suffixes. * UnderscoreEscapingWithoutSuffixes, metric names will continue to escape special characters to _, but suffixes won't be attached. * NoUTF8EscapingWithSuffixes will disable changing special characters to _. Special suffixes like units and _total for counters will be attached. * NoTranslation. This strategy bypasses all metric and label name translation, passing them through unaltered.
If omitted or null, UnderscoreEscapingWithSuffixes is used. |
+| `translation_strategy` | [`ExperimentalPrometheusTranslationStrategy`](#experimentalprometheustranslationstrategy) | `false` | No constraints. | Configure how Prometheus metrics are exposed. Values include:
* UnderscoreEscapingWithSuffixes, the default. This fully escapes metric names for classic Prometheus metric name compatibility, and includes appending type and unit suffixes. * UnderscoreEscapingWithoutSuffixes, metric names will continue to escape special characters to _, but suffixes won't be attached. * NoUTF8EscapingWithSuffixes will disable changing special characters to _. Special suffixes like units and _total for counters will be attached. * NoTranslation. This strategy bypasses all metric and label name translation, passing them through unaltered.
If omitted or null, UnderscoreEscapingWithSuffixes is used. |
| `with_resource_constant_labels` | [`IncludeExclude`](#includeexclude) | `false` | No constraints. | Configure Prometheus Exporter to add resource attributes as metrics attributes, where the resource attribute keys match the patterns. |
| `without_scope_info` | one of: * `boolean` * `null` | `false` | No constraints. | Configure Prometheus Exporter to produce metrics without a scope info metric. If omitted or null, false is used. |
| `without_target_info` | one of: * `boolean` * `null` | `false` | No constraints. | Configure Prometheus Exporter to produce metrics without a target info metric for the resource. If omitted or null, false is used. |
@@ -6573,21 +6576,61 @@ Usages:
"$ref": "common.json#/$defs/IncludeExclude"
},
"translation_strategy": {
- "type": [
- "string",
- "null"
- ],
- "enum": [
- "UnderscoreEscapingWithSuffixes",
- "UnderscoreEscapingWithoutSuffixes",
- "NoUTF8EscapingWithSuffixes",
- "NoTranslation"
- ]
+ "$ref": "#/$defs/ExperimentalPrometheusTranslationStrategy"
}
}
}
+## ExperimentalPrometheusTranslationStrategy
+
+> [!WARNING]
+> This type is [experimental](README.md#experimental-features).
+
+This is a enum type.
+
+| Value | Description |
+|---|---|
+| `NoTranslation` | Special character escaping is disabled. Type and unit suffixes are disabled. Metric names are unaltered. |
+| `NoUTF8EscapingWithSuffixes` | Special character escaping is disabled. Type and unit suffixes are enabled. |
+| `UnderscoreEscapingWithoutSuffixes` | Special character escaping is enabled. Type and unit suffixes are disabled. This represents classic Prometheus metric name compatibility. |
+| `UnderscoreEscapingWithSuffixes` | Special character escaping is enabled. Type and unit suffixes are enabled. |
+
+
+Language support status
+
+| Value | [cpp](#cpp) | [go](#go) | [java](#java) | [js](#js) |
+|---|---|---|---|---|
+| `NoTranslation` | unknown | unknown | unknown | unknown |
+| `NoUTF8EscapingWithSuffixes` | unknown | unknown | unknown | unknown |
+| `UnderscoreEscapingWithoutSuffixes` | unknown | unknown | unknown | unknown |
+| `UnderscoreEscapingWithSuffixes` | unknown | unknown | unknown | unknown |
+
+
+No constraints.
+
+Usages:
+
+* [`ExperimentalPrometheusMetricExporter.translation_strategy`](#experimentalprometheusmetricexporter)
+
+
+JSON Schema
+
+[JSON Schema Source File](./schema/meter_provider.json)
+