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:
Damien Grisonnet <dgrisonn@redhat.com>
Showing
- jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet 13 additions, 2 deletions...t/kube-prometheus/components/prometheus-adapter.libsonnet
- jsonnet/kube-prometheus/lib/utils.libsonnet 7 additions, 0 deletionsjsonnet/kube-prometheus/lib/utils.libsonnet
- jsonnet/kube-prometheus/main.libsonnet 6 additions, 0 deletionsjsonnet/kube-prometheus/main.libsonnet
- manifests/prometheus-adapter-configMap.yaml 4 additions, 2 deletionsmanifests/prometheus-adapter-configMap.yaml
Loading
Please register or sign in to comment