Class ExporterProperties

Object
ExporterProperties

@StableApi public class ExporterProperties extends Object
Configuration for common exporter behavior.

Properties use the io.prometheus.exporter prefix. Supported options are include_created_timestamps, prometheus_timestamps_in_ms, and exemplars_on_all_metric_types. Use PrometheusPropertiesLoader to load these options from configuration sources, or builder() to create an instance directly.

  • Method Details

    • getIncludeCreatedTimestamps

      public boolean getIncludeCreatedTimestamps()
      Include the _created timestamps in text format? Default is false.
    • getPrometheusTimestampsInMs

      public boolean getPrometheusTimestampsInMs()
      Use milliseconds for timestamps in prometheus text format? Default is false.
    • getExemplarsOnAllMetricTypes

      public boolean getExemplarsOnAllMetricTypes()
      Allow Exemplars on all metric types in OpenMetrics format? Default is false, which means Exemplars will only be added for Counters and Histogram buckets.
    • builder