nativehistogram

command
v1.24.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

A simple example of how to use native histograms.

Native histograms provide automatic bucketing with exponentially spaced bucket boundaries. Unlike classic histograms, there is no need to pre-define bucket boundaries -- the resolution adapts to the observed data distribution.

Native histograms require Prometheus v2.40+ with the --enable-feature=native-histograms flag. Starting with Prometheus v3, native histograms are enabled by default.

To scrape native histograms, configure Prometheus with:

scrape_configs:
  - job_name: 'example'
    scrape_protocols: ['PrometheusProto']
    static_configs:
      - targets: ['localhost:8080']

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL