Bug 1819765 - link for alert and expr in thanos-ruler UI are 404
Summary: link for alert and expr in thanos-ruler UI are 404
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.5.0
Assignee: Simon Pasquier
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On: 1827530
Blocks: 1820495
TreeView+ depends on / blocked
 
Reported: 2020-04-01 13:42 UTC by Junqi Zhao
Modified: 2020-07-13 17:25 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-13 17:24:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github coreos prometheus-operator pull 3129 0 None closed *: support external query URL for Thanos ruler 2020-06-23 09:44:44 UTC
Github openshift cluster-monitoring-operator pull 746 0 None closed Bug 1819765: fix alert links in Thanos Ruler UI 2020-06-23 09:44:44 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:25:09 UTC

Description Junqi Zhao 2020-04-01 13:42:23 UTC
Create PrometheusRule under user namespace and check the rules/alerts in thanos-ruler UI, click the link for alert and expr, it returns 404 page
Steps:
***********************************************
# oc new-project test3
# oc create -f - << EOF
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  name: test3.rules
spec:
  groups:
  - name: alerting rules
    rules:
    - alert: Watchdog
      expr: vector(1)
      labels:
        severity: none
      message:
        This is an alert meant to ensure that the entire alerting pipeline is functional.
EOF
***********************************************
Version-Release number of selected component (if applicable):
4.5.0-0.nightly-2020-03-31-203533

How reproducible:
Always

Steps to Reproduce:
1. See the description
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Junqi Zhao 2020-04-22 04:16:41 UTC
blocked by bug 1826601

Comment 4 Junqi Zhao 2020-04-24 06:32:05 UTC
will test after Bug 1827530 is fixed

Comment 5 Junqi Zhao 2020-04-26 02:22:34 UTC
Tested with 4.5.0-0.nightly-2020-04-25-170442, see the following alert, link for alert expr is fine

alert: Watchdog
expr: vector(1)
labels:
  namespace: load
  severity: none


for the alertname link, it links to
https://${thanos-querier-route}/graph?g0.expr=ALERTS%7Balertname%3D%22Watchdog%22%7D&g0.tab=1
since the alert is limited to user namespace, I think we'd better add "namespace="load" in the query

https://${thanos-querier-route}/graph?g0.expr=ALERTS%7Balertname%3D%22Watchdog%22%2Cnamespace%3D%22load%22%7D&g0.tab=1

Comment 9 errata-xmlrpc 2020-07-13 17:24:45 UTC
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


Note You need to log in before you can comment on or make changes to this bug.