Bug 1943565
Summary: | ThanosSidecarUnhealthy | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Simon Pasquier <spasquie> |
Component: | Monitoring | Assignee: | Arunprasad Rajkumar <arajkuma> |
Status: | CLOSED ERRATA | QA Contact: | hongyan li <hongyli> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 4.7 | CC: | alegrand, anpicker, ccoleman, dgrisonn, erooth, hongkliu, hongyli, kakkoyun, lcosic, pkrupa, skuznets, spasquie, wking |
Target Milestone: | --- | ||
Target Release: | 4.8.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1921335 | Environment: | |
Last Closed: | 2021-08-10 11:27:36 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1955586 | ||
Bug Blocks: |
Description
Simon Pasquier
2021-03-26 13:20:02 UTC
Test with cluster-bot and the PR, issue fixed oc get prometheusrules prometheus-k8s-rules -n openshift-monitoring -oyaml|grep -A 10 ThanosSidecarUnhealthy - alert: ThanosSidecarUnhealthy annotations: description: Thanos Sidecar {{$labels.job}} {{$labels.pod}} is unhealthy for {{ $value }} seconds. summary: Thanos Sidecar is unhealthy. expr: | time() - max(timestamp(thanos_sidecar_last_heartbeat_success_time_seconds{job=~"prometheus-(k8s|user-workload)-thanos-sidecar"})) by (job,pod) >= 240 labels: severity: critical I closed the backport PR as the fix for bug 1921335 includes a regression: https://github.com/thanos-io/thanos/issues/3990. The resolution of this bug depends on bug 1955586, so we can't make any progress on it until it is resolved. Test with payload 4.8.0-0.nightly-2021-07-29-033031, alert rule changed and query data make sense. $ oc get prometheusrules prometheus-k8s-prometheus-rules -n openshift-monitoring -oyaml|grep -A 10 ThanosSidecarUnhealthy - alert: ThanosSidecarUnhealthy annotations: description: Thanos Sidecar {{$labels.job}} {{$labels.pod}} is unhealthy for more than {{ $value }} seconds. summary: Thanos Sidecar is unhealthy. expr: | time() - max(thanos_sidecar_last_heartbeat_success_time_seconds{job=~"prometheus-(k8s|user-workload)-thanos-sidecar"}) by (job,pod) >= 240 for: 1h labels: severity: warning $ token=`oc sa get-token prometheus-k8s -n openshift-monitoring` oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" https://prometheus-k8s.openshift-monitoring.svc:9091/api/v1/query --data-urlencode query='time() - max(thanos_sidecar_last_heartbeat_success_time_seconds{job=~"prometheus-(k8s|user-workload)-thanos-sidecar"}) by (job,pod)' | jq % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 481 0 306 100 175 9562 5468 --:--:-- --:--:-- --:--:-- 15516 { "status": "success", "data": { "resultType": "vector", "result": [ { "metric": { "job": "prometheus-k8s-thanos-sidecar", "pod": "prometheus-k8s-0" }, "value": [ 1627550008.428, "26.631994009017944" ] }, { "metric": { "job": "prometheus-k8s-thanos-sidecar", "pod": "prometheus-k8s-1" }, "value": [ 1627550008.428, "28.255205631256104" ] } ] } } Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.8.4 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:2983 |