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']
Click to show internal directories.
Click to hide internal directories.