Package io.prometheus.metrics.config
Class ExporterProperties
java.lang.Object
io.prometheus.metrics.config.ExporterProperties
Properties starting with io.prometheus.exporter
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExporterProperties(Boolean includeCreatedTimestamps, Boolean prometheusTimestampsInMs, Boolean exemplarsOnAllMetricTypes) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExporterProperties.Builderbuilder()booleanAllow Exemplars on all metric types in OpenMetrics format? Default isfalse, which means Exemplars will only be added for Counters and Histogram buckets.booleanInclude the_createdtimestamps in text format? Default isfalse.booleanUse milliseconds for timestamps in prometheus text format? Default isfalse.(package private) static ExporterPropertiesload(PropertySource propertySource) Note that this will remove entries frompropertySource.
-
Field Details
-
INCLUDE_CREATED_TIMESTAMPS
- See Also:
-
PROMETHEUS_TIMESTAMPS_IN_MS
- See Also:
-
EXEMPLARS_ON_ALL_METRIC_TYPES
- See Also:
-
PREFIX
- See Also:
-
includeCreatedTimestamps
-
prometheusTimestampsInMs
-
exemplarsOnAllMetricTypes
-
-
Constructor Details
-
ExporterProperties
-
-
Method Details
-
getIncludeCreatedTimestamps
public boolean getIncludeCreatedTimestamps()Include the_createdtimestamps in text format? Default isfalse. -
getPrometheusTimestampsInMs
public boolean getPrometheusTimestampsInMs()Use milliseconds for timestamps in prometheus text format? Default isfalse. -
getExemplarsOnAllMetricTypes
public boolean getExemplarsOnAllMetricTypes()Allow Exemplars on all metric types in OpenMetrics format? Default isfalse, which means Exemplars will only be added for Counters and Histogram buckets. -
load
Note that this will remove entries frompropertySource. This is because we want to know if there are unused properties remaining after all properties have been loaded.- Throws:
PrometheusPropertiesException
-
builder
-