Bug 1825137
Summary: | prometheus chart for alert on "Monitoring -> Alerting" won't be shown if configured Prometheus externalLabels setting | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Junqi Zhao <juzhao> |
Component: | Management Console | Assignee: | Andrew Pickering <anpicker> |
Status: | CLOSED ERRATA | QA Contact: | Junqi Zhao <juzhao> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 4.4 | CC: | anpicker, aos-bugs, dtaylor, jokerman, spadgett |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | 4.6.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-10-27 15:58:26 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: | |||
Attachments: |
Description
Junqi Zhao
2020-04-17 07:08:32 UTC
Created attachment 1679580 [details]
remove the externalLabels settings would show the prometheus chart
It is the same error on 4.3, but there is not such error on 4.2, maybe from 4.3 we used APIs from thanos Sounds like https://github.com/openshift/console/pull/3445 Marking this a duplicate of bug 1771843. Let us know if you're still seeing the issue. *** This bug has been marked as a duplicate of bug 1771843 *** I was able to reproduce this bug. Blocked by bug 1851675 fixed with 4.6.0-0.nightly-2020-06-30-000342 # oc get co/console NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE console 4.6.0-0.nightly-2020-06-30-000342 True False False 133m # oc -n openshift-console get pod NAME READY STATUS RESTARTS AGE console-788b79dbcc-2zzgb 1/1 Running 0 133m console-788b79dbcc-6mxnl 1/1 Running 0 133m downloads-5cf6d8447-7ms5n 1/1 Running 0 143m downloads-5cf6d8447-btgpx 1/1 Running 0 143m # oc -n openshift-console logs console-788b79dbcc-6mxnl 2020-06-30T02:14:17Z cmd/main: cookies are secure! 2020-06-30T02:14:17Z cmd/main: Binding to [::]:8443... 2020-06-30T02:14:17Z cmd/main: using TLS ignore comment 11, tested with 4.6.0-0.nightly-2020-06-30-000342, prometheus chart for alerts on "Monitoring -> Alerting" is shown correctly after configured Prometheus externalLabels setting, see the attached picture # oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://alertmanager-main.openshift-monitoring.svc:9094/api/v1/alerts' | jq '.data[].labels | {alertname,environment,region}' { "alertname": "CannotRetrieveUpdates", "environment": "AWS", "region": "us-east-2" } { "alertname": "Watchdog", "environment": "AWS", "region": "us-east-2" } { "alertname": "AlertmanagerReceiversNotConfigured", "environment": "AWS", "region": "us-east-2" } { "alertname": "CustomResourceDetected", "environment": "AWS", "region": "us-east-2" } Created attachment 1699237 [details]
prometheus chart is shown with externalLabels setting
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 (OpenShift Container Platform 4.6 GA Images), 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:4196 |