Skip to content

Commit

Permalink
Turn honor_timestamps off for resource scrape config
Browse files Browse the repository at this point in the history
Metrics for pods were included in queries for some period after
the pod was already removed. This resulted in inaccurate values for
autoscaling.

Turning honor_timestamps off for the kubernetes-resource-metrics job seems
to fix this issue.

Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
welteki authored and alexellis committed Aug 23, 2024
1 parent 180c3ab commit 8664296
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chart/openfaas/templates/prometheus-pro-cfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ data:
- job_name: 'kubernetes-resource-metrics'
scrape_interval: 10s
honor_timestamps: false
scheme: https
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
Expand Down

0 comments on commit 8664296

Please sign in to comment.