Prometheus.spec.containers.env.valueFrom.resourceFieldRef.spec.otlp
otlp defines the settings related to the OTLP receiver feature. It requires Prometheus >= v2.55.0.
| Field / Type | Description |
|---|---|
convertHistogramsToNHCB | convertHistogramsToNHCB defines optional translation of OTLP explicit bucket histograms into native histograms with custom buckets. It requires Prometheus >= v3.4.0. |
ignoreResourceAttributes defines the list of OpenTelemetry resource attributes to ignore when `promoteAllResourceAttributes` is true. It requires `promoteAllResourceAttributes` to be true. It requires Prometheus >= v3.5.0.
| |
keepIdentifyingResourceAttributes | keepIdentifyingResourceAttributes enables adding `service.name`, `service.namespace` and `service.instance.id` resource attributes to the `target_info` metric, on top of converting them into the `instance` and `job` labels. It requires Prometheus >= v3.1.0. |
labelNamePreserveMultipleUnderscores | labelNamePreserveMultipleUnderscores enables preserving of multiple consecutive underscores in label names when translation_strategy uses underscore escaping. When true (default), multiple consecutive underscores are preserved during label name sanitization. Notice: This one has no impact if `nameEscapingScheme` is `AllowUTF8`. It requires Prometheus >= v3.8.0. |
labelNameUnderscoreSanitization | labelNameUnderscoreSanitization controls whether to enable prepending of 'key_' to labels starting with '_'. Reserved labels starting with '__' are not modified. This is only relevant when translation_strategy uses underscore escaping (e.g., "UnderscoreEscapingWithSuffixes" or "UnderscoreEscapingWithoutSuffixes"). Notice: This one has no impact if `nameEscapingScheme` is `AllowUTF8`. It requires Prometheus >= v3.8.0. |
promoteAllResourceAttributes | promoteAllResourceAttributes promotes all resource attributes to metric labels except the ones defined in `ignoreResourceAttributes`. Cannot be true when `promoteResourceAttributes` is defined. It requires Prometheus >= v3.5.0. |
promoteResourceAttributes defines the list of OpenTelemetry Attributes that should be promoted to metric labels, defaults to none. Cannot be defined when `promoteAllResourceAttributes` is true.
| |
promoteScopeMetadata | promoteScopeMetadata controls whether to promote OpenTelemetry scope metadata (i.e. name, version, schema URL, and attributes) to metric labels. As per the OpenTelemetry specification, the aforementioned scope metadata should be identifying, i.e. made into metric labels. It requires Prometheus >= v3.6.0. |
translationStrategy | translationStrategy defines how the OTLP receiver endpoint translates the incoming metrics. It requires Prometheus >= v3.0.0.
|