Skip to content
Snippets Groups Projects
Commit 8812e455 authored by Damien Grisonnet's avatar Damien Grisonnet
Browse files

jsonnet: readjust prometheus-adapter intervals


Previously, prometheus-adapter configuration wasn't taking into account
the scrape interval of kubelet, node-exporter and windows-exporter
leading to getting non fresh results, and even negative results from the
CPU queries when the irate() function was extrapolating data.
To fix that, we want to set the interval used in the irate() function in
the CPU queries to 4x scrape interval in order to extrapolate data
between the last two scrapes. This will improve the freshness of the cpu
usage exposed and prevent incorrect extrapolations.

Signed-off-by: default avatarDamien Grisonnet <dgrisonn@redhat.com>
parent 4d810481
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment