The following alerts is firing PrometheusDuplicateTimestamps Turning on debug logs indicates that the noobaa-mgmt-service-monitor and s3-service-monitor are the issue 1 ts=2024-08-09T12:35:11.506Z caller=scrape.go:1777 level=debug component="scrape manager" scrape_pool=serviceMonitor/openshift-storage/noobaa-mgmt-service-monitor/0 target=http://10.129.2.15:8080/metrics/web_server msg="Duplicate sample for timestamp" series=NooBaa_health_status This can be shown by manually curling the metrics oc exec prometheus-k8s-1 -- curl "http://10.129.2.15:8080/metrics/web_server" > metrics.txt Which indeed is returning duplicate metrics by searching for 'NooBaa_health_status 0' as a example Upon investigation this is because of this block https://github.com/noobaa/noobaa-core/blob/ad73e9cb3bd483f6f34de9a28a9f4ba3ea060eb3/src/server/analytic_services/prometheus_reporting.js#L44 If I call /metrics/web_server/nodejs and /metrics/web_server/core seperatly they return the same results. So the solution is to either alert the code above or change the service monitor items to append /nodejs onto the end. Such as apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: noobaa-mgmt-service-monitor labels: app: noobaa spec: endpoints: - port: mgmt path: /metrics/web_server/nodejs - port: mgmt path: /metrics/bg_workers - port: mgmt path: /metrics/hosted_agents namespaceSelector: {} selector: matchLabels: noobaa-mgmt-svc: "true"
created KCS
Greetings, due to this bug, any change in configmap cluster-monitoring-config could not be processed, so this is impacting new deployments to configure persistence.
Hello team, Thank you for the information. I see the target for fix is approved for 4.17 bug fix cycle ..Is it possible to get a fix/patch in 4.16 while waiting for the 4.17 cycle? Please and thank you Adebi
Hi, Fixing on an older version, while on a newer version, there is an issue, is a regression. We will fix it on 4.17, and consider it to be in one of the 4.16.z Best Regards, Liran.
Please update the RDT flag/text appropriately.