Bug 1926598
Summary: | Duplicate alert rules are displayed on console for thanos-querier api return wrong results | ||||||
---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | hongyan li <hongyli> | ||||
Component: | Monitoring | Assignee: | Sergiusz Urbaniak <surbania> | ||||
Status: | CLOSED ERRATA | QA Contact: | hongyan li <hongyli> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 4.7 | CC: | alegrand, anpicker, erooth, juzhao, kakkoyun, lcosic, pkrupa, spasquie | ||||
Target Milestone: | --- | ||||||
Target Release: | 4.8.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | No Doc Update | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2021-07-27 22:42:29 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: | 1944575 | ||||||
Attachments: |
|
Description
hongyan li
2021-02-09 07:45:15 UTC
Created attachment 1755860 [details]
screen shot for console with duplicate alert rule
oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://thanos-querier.openshift-monitoring.svc:9091/api/v1/rules' | jq |grep ElasticsearchClusterNotHealthy -A20 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 251k 0 251k 0 0 4344k 0 --:--:-- --:--:-- --:--:-- 4344k "name": "ElasticsearchClusterNotHealthy", "query": "sum by(cluster) (es_cluster_status == 2)", "duration": 420, "labels": { "prometheus": "openshift-monitoring/k8s", "severity": "critical" }, "annotations": { "message": "Cluster {{ $labels.cluster }} health status has been RED for at least 7m. Cluster does not accept writes, shards may be missing or master node hasn't been elected yet. For more information refer to https://github.com/openshift/elasticsearch-operator/blob/master/docs/alerts.md#Elasticsearch-Cluster-Health-is-Red", "summary": "Cluster health status is RED" }, "alerts": [], "health": "ok", "evaluationTime": 0.000253482, "lastEvaluation": "2021-02-09T08:06:42.681095906Z", "type": "alerting" }, { "state": "inactive", "name": "ElasticsearchClusterNotHealthy", "query": "sum by(cluster) (es_cluster_status == 1)", "duration": 1200, "labels": { "prometheus": "openshift-monitoring/k8s", "severity": "warning" }, "annotations": { "message": "Cluster {{ $labels.cluster }} health status has been YELLOW for at least 20m. Some shard replicas are not allocated. For more information refer to https://github.com/openshift/elasticsearch-operator/blob/master/docs/alerts.md#Elasticsearch-Cluster-Healthy-is-Yellow", "summary": "Cluster health status is YELLOW" }, "alerts": [], "health": "ok", "evaluationTime": 0.000109183, "lastEvaluation": "2021-02-09T08:06:42.68135068Z", "type": "alerting" }, { "state": "inactive", "name": "ElasticsearchClusterNotHealthy", "query": "sum by(cluster) (es_cluster_status == 2)", "duration": 420, "labels": { "prometheus": "openshift-monitoring/k8s", "severity": "critical" }, "annotations": { "message": "Cluster {{ $labels.cluster }} health status has been RED for at least 7m. Cluster does not accept writes, shards may be missing or master node hasn't been elected yet. For more information refer to https://github.com/openshift/elasticsearch-operator/blob/master/docs/alerts.md#Elasticsearch-Cluster-Health-is-Red", "summary": "Cluster health status is RED" }, "alerts": [], "health": "ok", "evaluationTime": 0.000212364, "lastEvaluation": "2021-02-09T08:06:42.681140147Z", "type": "alerting" }, { "state": "inactive", "name": "ElasticsearchClusterNotHealthy", "query": "sum by(cluster) (es_cluster_status == 1)", "duration": 1200, "labels": { "prometheus": "openshift-monitoring/k8s", "severity": "warning" }, "annotations": { "message": "Cluster {{ $labels.cluster }} health status has been YELLOW for at least 20m. Some shard replicas are not allocated. For more information refer to https://github.com/openshift/elasticsearch-operator/blob/master/docs/alerts.md#Elasticsearch-Cluster-Healthy-is-Yellow", "summary": "Cluster health status is YELLOW" }, "alerts": [], "health": "ok", "evaluationTime": 8.7608e-05, "lastEvaluation": "2021-02-09T08:06:42.681353788Z", "type": "alerting" }, { "state": "inactive", "name": "ElasticsearchDiskSpaceRunningLow", "query": "sum(predict_linear(es_fs_path_available_bytes[6h], 6 * 3600)) < 0", *** Bug 1940882 has been marked as a duplicate of this bug. *** tested with 4.8.0-0.nightly-2021-03-30-160509, search alerting rules in "Monitoring-> Alerting -> Alerting rules", no duplicate alert rules are displayed now 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.2 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:2438 |