Bug 1827530
| Summary: | no alert/rule on thanos-ruler UI | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Junqi Zhao <juzhao> | ||||
| Component: | Monitoring | Assignee: | Simon Pasquier <spasquie> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Junqi Zhao <juzhao> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4.5 | CC: | alegrand, anpicker, erooth, kakkoyun, lcosic, mloibl, pkrupa, spasquie, surbania | ||||
| Target Milestone: | --- | Keywords: | Regression | ||||
| Target Release: | 4.5.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | No Doc Update | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-07-13 17:30:56 UTC | Type: | Bug | ||||
| 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: | |||||||
| Bug Blocks: | 1819765, 1828702 | ||||||
| Attachments: |
|
||||||
|
Description
Junqi Zhao
2020-04-24 06:13:51 UTC
the same with thanos-ruler sa # token=`oc sa get-token thanos-ruler -n openshift-user-workload-monitoring` # oc -n openshift-user-workload-monitoring exec -c rules-configmap-reloader thanos-ruler-user-workload-0 -- curl -k -H "Authorization: Bearer $token" 'https://thanos { "status": "success", "data": { "alerts": null } } # oc -n openshift-user-workload-monitoring exec -c rules-configmap-reloader thanos-ruler-user-workload-0 -- curl -k -H "Authorization: Bearer $token" 'https://thanos-ruler.openshift-user-workload-monitoring.svc:9091/api/v1/rules' | jq { "status": "success", "data": { "groups": null } } (In reply to Junqi Zhao from comment #1) > the same with thanos-ruler sa > # oc -n openshift-user-workload-monitoring exec -c rules-configmap-reloader > thanos-ruler-user-workload-0 -- curl -k -H "Authorization: Bearer $token" > 'https://thanos > { > "status": "success", > "data": { > "alerts": null > } should be # oc -n openshift-user-workload-monitoring exec -c rules-configmap-reloader thanos-ruler-user-workload-0 -- curl -k -H "Authorization: Bearer $token" 'https://thanos-ruler.openshift-user-workload-monitoring.svc:9091/api/v1/alerts' | jq { "status": "success", "data": { "alerts": null } } not sure if the issue is related to Bug 1827489, after Bug 1827489 is fixed,the there is not such issue with 4.5.0-0.nightly-2020-04-25-170442. close it # oc -n openshift-user-workload-monitoring logs thanos-ruler-user-workload-0 -c rules-configmap-reloader 2020/04/26 01:41:17 Watching directory: "/etc/thanos/rules/thanos-ruler-user-workload-rulefiles-0" # 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://thanos-ruler.openshift-user-workload-monitoring.svc:9091/api/v1/alerts' | jq % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 244 100 244 0 0 5741 0 --:--:-- --:--:-- --:--:-- 5809 { "status": "success", "data": { "alerts": [ { "labels": { "alertname": "Watchdog", "namespace": "load", "severity": "none" }, "annotations": {}, "state": "firing", "activeAt": "2020-04-26T01:53:41.308293746Z", "value": "1e+00", "partial_response_strategy": "ABORT" } ] } } tested with 4.5.0-0.nightly-2020-05-05-205255, there are alerts/rule on thanos-ruler UI # oc -n openshift-user-workload-monitoring logs thanos-ruler-user-workload-0 -c rules-configmap-reloader 2020/05/06 08:23:14 Watching directory: "/etc/thanos/rules/thanos-ruler-user-workload-rulefiles-0" 2020/05/06 09:06:27 config map updated # token=`oc sa get-token thanos-ruler -n openshift-user-workload-monitoring` # oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://thanos-ruler.openshift-user-workload-monitoring.svc:9091/api/v1/alerts' | jq { "status": "success", "data": { "alerts": [ { "labels": { "alertname": "Watchdog", "namespace": "test3", "severity": "none" }, "annotations": {}, "state": "firing", "activeAt": "2020-05-06T09:06:42.078951644Z", "value": "1e+00", "partial_response_strategy": "ABORT" } ] } } 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, 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/RHBA-2020:2409 |