From 8664296affa74fb6dd40f7b34a01dab1b2384e88 Mon Sep 17 00:00:00 2001 From: "Han Verstraete (OpenFaaS Ltd)" Date: Fri, 23 Aug 2024 12:43:41 +0200 Subject: [PATCH] Turn honor_timestamps off for resource scrape config 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) --- chart/openfaas/templates/prometheus-pro-cfg.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/chart/openfaas/templates/prometheus-pro-cfg.yaml b/chart/openfaas/templates/prometheus-pro-cfg.yaml index 3a1ae87e1..c6229ee4e 100644 --- a/chart/openfaas/templates/prometheus-pro-cfg.yaml +++ b/chart/openfaas/templates/prometheus-pro-cfg.yaml @@ -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