-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Prometheus Monitoring is showing "Page not found 404 Error" in cluster home #41562
Comments
Same on Rancher 2.6.11, monitoring 100.2.0+up40.1.2 |
Might be related to #43467 |
Seeing the same issues on 2.7.1 after upgrading monitoring to 100.2.0+up40.1.2 If I click on the Grafana link for i.e. Etcd Metrics the URL I end up with, which gives me a 404 is: https://rancher.bleh.blah:3000/api/v1/namespaces/cattle-monitoring-system/services/http:rancher-monitoring-grafana:80/proxy/d/rancher-etcd-nodes-1/rancher-etcd-nodes?orgId=1 However, if I go and view that particular dashboard within Grafana the URL is slightly different and works: https://rancher.bleh.blah:3000/k8s/clusters/local/api/v1/namespaces/cattle-monitoring-system/services/http:rancher-monitoring-grafana:80/proxy/d/rancher-etcd-nodes-1/rancher-etcd-nodes?orgId=1 I'm on RKE2 1.24.12 and it's for the local cluster, no remote/managed clusters. |
Looks like this PR would fix it for me, rancher/prometheus-federator#65 |
Did some digging on this with @mantis-toboggan-md and figured out that the requirement for the In short: Both the link on Monitoring -> Grafana, and the embedded iframe views on the Cluster tab, should follow the same logic regarding the prefix. Right now these two locations appear to be using different rules to construct the URL, usually resulting in one or the other being broken for a given chart version. |
Hello everyone, sharing my experience, it happens when for the "rancher-monitoring" App/Helm release (which is for 99% the kube-prometheus-stack), the Helm values:
are not set. Those values are needed to build the Nginx rewrite rules correctly, to proxy the Grafana Kubernetes Service in the downstream clusters through the downstream cluster's API server proxy via the Rancher proxy. When managing clusters the GitOps way Fleet provides integration with Rancher through cluster labels. Otherwise, you need to know in advance the Rancher-generated cluster ID, and declare it in your downstream cluster's configuration. |
@maxgio92 you are right. Update the helm option & redepoy all pods works like a charm.
|
Rancher Server Setup
Information about the Cluster
User Information
Describe the bug
Cluster home with Monitoring installed is showing "Page not found 404 Error".
To Reproduce
Installed Prometheus Monitoring app from Apps > Charts > Monitoring. After everything is installed, navigate to the Cluster home. Scroll to the bottom and the Cluster Metrics, Kubernetes Component Metrics and Etcd Metrics should now be displayed. However, it is showing "Page not found 404 Error".
Result
No Grafana graphs are shown, only "Page not found 404 Error".
Expected Result
The respective Grafana graphs should be displayed
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: