Class NativeHistogramConfig

    • Constructor Detail

      • NativeHistogramConfig

        public NativeHistogramConfig()
        No args constructor for use in serialization
      • NativeHistogramConfig

        public NativeHistogramConfig​(Boolean convertClassicHistogramsToNHCB,
                                     Long nativeHistogramBucketLimit,
                                     Quantity nativeHistogramMinBucketFactor,
                                     Boolean scrapeClassicHistograms,
                                     Boolean scrapeNativeHistograms)
    • Method Detail

      • getConvertClassicHistogramsToNHCB

        public Boolean getConvertClassicHistogramsToNHCB()
        convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets. It requires Prometheus >= v3.0.0.
      • setConvertClassicHistogramsToNHCB

        public void setConvertClassicHistogramsToNHCB​(Boolean convertClassicHistogramsToNHCB)
        convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets. It requires Prometheus >= v3.0.0.
      • getNativeHistogramBucketLimit

        public Long getNativeHistogramBucketLimit()
        nativeHistogramBucketLimit defines ff there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit. It requires Prometheus >= v2.45.0.
      • setNativeHistogramBucketLimit

        public void setNativeHistogramBucketLimit​(Long nativeHistogramBucketLimit)
        nativeHistogramBucketLimit defines ff there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit. It requires Prometheus >= v2.45.0.
      • getNativeHistogramMinBucketFactor

        public Quantity getNativeHistogramMinBucketFactor()
        NativeHistogramConfig extends the native histogram configuration settings.
      • setNativeHistogramMinBucketFactor

        public void setNativeHistogramMinBucketFactor​(Quantity nativeHistogramMinBucketFactor)
        NativeHistogramConfig extends the native histogram configuration settings.
      • getScrapeClassicHistograms

        public Boolean getScrapeClassicHistograms()
        scrapeClassicHistograms defines whether to scrape a classic histogram that is also exposed as a native histogram. It requires Prometheus >= v2.45.0.


        Notice: `scrapeClassicHistograms` corresponds to the `always_scrape_classic_histograms` field in the Prometheus configuration.

      • setScrapeClassicHistograms

        public void setScrapeClassicHistograms​(Boolean scrapeClassicHistograms)
        scrapeClassicHistograms defines whether to scrape a classic histogram that is also exposed as a native histogram. It requires Prometheus >= v2.45.0.


        Notice: `scrapeClassicHistograms` corresponds to the `always_scrape_classic_histograms` field in the Prometheus configuration.

      • getScrapeNativeHistograms

        public Boolean getScrapeNativeHistograms()
        scrapeNativeHistograms defines whether to enable scraping of native histograms. It requires Prometheus >= v3.8.0.
      • setScrapeNativeHistograms

        public void setScrapeNativeHistograms​(Boolean scrapeNativeHistograms)
        scrapeNativeHistograms defines whether to enable scraping of native histograms. It requires Prometheus >= v3.8.0.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)