Class OTLPConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.OTLPConfig
-
- All Implemented Interfaces:
Editable<OTLPConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class OTLPConfig extends Object implements Editable<OTLPConfigBuilder>, KubernetesResource
OTLPConfig is the configuration for writing to the OTLP endpoint.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OTLPConfig()No args constructor for use in serializationOTLPConfig(Boolean convertHistogramsToNHCB, List<String> ignoreResourceAttributes, Boolean keepIdentifyingResourceAttributes, Boolean promoteAllResourceAttributes, List<String> promoteResourceAttributes, Boolean promoteScopeMetadata, String translationStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OTLPConfigBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetConvertHistogramsToNHCB()convertHistogramsToNHCB defines optional translation of OTLP explicit bucket histograms into native histograms with custom buckets.List<String>getIgnoreResourceAttributes()ignoreResourceAttributes defines the list of OpenTelemetry resource attributes to ignore when `promoteAllResourceAttributes` is true.BooleangetKeepIdentifyingResourceAttributes()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.BooleangetPromoteAllResourceAttributes()promoteAllResourceAttributes promotes all resource attributes to metric labels except the ones defined in `ignoreResourceAttributes`.List<String>getPromoteResourceAttributes()promoteResourceAttributes defines the list of OpenTelemetry Attributes that should be promoted to metric labels, defaults to none.BooleangetPromoteScopeMetadata()promoteScopeMetadata controls whether to promote OpenTelemetry scope metadata (i.e. name, version, schema URL, and attributes) to metric labels.StringgetTranslationStrategy()translationStrategy defines how the OTLP receiver endpoint translates the incoming metrics.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetConvertHistogramsToNHCB(Boolean convertHistogramsToNHCB)convertHistogramsToNHCB defines optional translation of OTLP explicit bucket histograms into native histograms with custom buckets.voidsetIgnoreResourceAttributes(List<String> ignoreResourceAttributes)ignoreResourceAttributes defines the list of OpenTelemetry resource attributes to ignore when `promoteAllResourceAttributes` is true.voidsetKeepIdentifyingResourceAttributes(Boolean 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.voidsetPromoteAllResourceAttributes(Boolean promoteAllResourceAttributes)promoteAllResourceAttributes promotes all resource attributes to metric labels except the ones defined in `ignoreResourceAttributes`.voidsetPromoteResourceAttributes(List<String> promoteResourceAttributes)promoteResourceAttributes defines the list of OpenTelemetry Attributes that should be promoted to metric labels, defaults to none.voidsetPromoteScopeMetadata(Boolean promoteScopeMetadata)promoteScopeMetadata controls whether to promote OpenTelemetry scope metadata (i.e. name, version, schema URL, and attributes) to metric labels.voidsetTranslationStrategy(String translationStrategy)translationStrategy defines how the OTLP receiver endpoint translates the incoming metrics.OTLPConfigBuildertoBuilder()
-
-
-
Method Detail
-
getConvertHistogramsToNHCB
public Boolean getConvertHistogramsToNHCB()
convertHistogramsToNHCB defines optional translation of OTLP explicit bucket histograms into native histograms with custom buckets. It requires Prometheus >= v3.4.0.
-
setConvertHistogramsToNHCB
public void setConvertHistogramsToNHCB(Boolean convertHistogramsToNHCB)
convertHistogramsToNHCB defines optional translation of OTLP explicit bucket histograms into native histograms with custom buckets. It requires Prometheus >= v3.4.0.
-
getIgnoreResourceAttributes
public List<String> getIgnoreResourceAttributes()
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.
-
setIgnoreResourceAttributes
public void setIgnoreResourceAttributes(List<String> ignoreResourceAttributes)
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.
-
getKeepIdentifyingResourceAttributes
public Boolean getKeepIdentifyingResourceAttributes()
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.
-
setKeepIdentifyingResourceAttributes
public void setKeepIdentifyingResourceAttributes(Boolean 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.
-
getPromoteAllResourceAttributes
public Boolean getPromoteAllResourceAttributes()
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.
-
setPromoteAllResourceAttributes
public void setPromoteAllResourceAttributes(Boolean 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.
-
getPromoteResourceAttributes
public List<String> getPromoteResourceAttributes()
promoteResourceAttributes defines the list of OpenTelemetry Attributes that should be promoted to metric labels, defaults to none. Cannot be defined when `promoteAllResourceAttributes` is true.
-
setPromoteResourceAttributes
public void setPromoteResourceAttributes(List<String> promoteResourceAttributes)
promoteResourceAttributes defines the list of OpenTelemetry Attributes that should be promoted to metric labels, defaults to none. Cannot be defined when `promoteAllResourceAttributes` is true.
-
getPromoteScopeMetadata
public Boolean getPromoteScopeMetadata()
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.
-
setPromoteScopeMetadata
public void setPromoteScopeMetadata(Boolean 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.
-
getTranslationStrategy
public String getTranslationStrategy()
translationStrategy defines how the OTLP receiver endpoint translates the incoming metrics.It requires Prometheus >= v3.0.0.
-
setTranslationStrategy
public void setTranslationStrategy(String translationStrategy)
translationStrategy defines how the OTLP receiver endpoint translates the incoming metrics.It requires Prometheus >= v3.0.0.
-
edit
public OTLPConfigBuilder edit()
- Specified by:
editin interfaceEditable<OTLPConfigBuilder>
-
toBuilder
public OTLPConfigBuilder toBuilder()
-
-