Class OTLPConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.OTLPConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<OTLPConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class OTLPConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<OTLPConfigBuilder>, io.fabric8.kubernetes.api.model.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, Boolean keepIdentifyingResourceAttributes, List<String> promoteResourceAttributes, String translationStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OTLPConfigBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetConvertHistogramsToNHCB()Configures optional translation of OTLP explicit bucket histograms into native histograms with custom buckets.BooleangetKeepIdentifyingResourceAttributes()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.List<String>getPromoteResourceAttributes()List of OpenTelemetry Attributes that should be promoted to metric labels, defaults to none.StringgetTranslationStrategy()Configures how the OTLP receiver endpoint translates the incoming metrics.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetConvertHistogramsToNHCB(Boolean convertHistogramsToNHCB)Configures optional translation of OTLP explicit bucket histograms into native histograms with custom buckets.voidsetKeepIdentifyingResourceAttributes(Boolean 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.voidsetPromoteResourceAttributes(List<String> promoteResourceAttributes)List of OpenTelemetry Attributes that should be promoted to metric labels, defaults to none.voidsetTranslationStrategy(String translationStrategy)Configures how the OTLP receiver endpoint translates the incoming metrics.OTLPConfigBuildertoBuilder()
-
-
-
Method Detail
-
getConvertHistogramsToNHCB
public Boolean getConvertHistogramsToNHCB()
Configures 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)
Configures optional translation of OTLP explicit bucket histograms into native histograms with custom buckets. It requires Prometheus >= v3.4.0.
-
getKeepIdentifyingResourceAttributes
public Boolean getKeepIdentifyingResourceAttributes()
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)
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.
-
getPromoteResourceAttributes
public List<String> getPromoteResourceAttributes()
List of OpenTelemetry Attributes that should be promoted to metric labels, defaults to none.
-
setPromoteResourceAttributes
public void setPromoteResourceAttributes(List<String> promoteResourceAttributes)
List of OpenTelemetry Attributes that should be promoted to metric labels, defaults to none.
-
getTranslationStrategy
public String getTranslationStrategy()
Configures how the OTLP receiver endpoint translates the incoming metrics.It requires Prometheus >= v3.0.0.
-
setTranslationStrategy
public void setTranslationStrategy(String translationStrategy)
Configures how the OTLP receiver endpoint translates the incoming metrics.It requires Prometheus >= v3.0.0.
-
edit
public OTLPConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<OTLPConfigBuilder>
-
toBuilder
public OTLPConfigBuilder toBuilder()
-
-