Replies: 3 comments 5 replies
-
|
Hello, which URL are you trying to address? Recent versions of OKD / OpenShift don't expose the Prometheus UI anymore ( Could you post the output of this command? |
Beta Was this translation helpful? Give feedback.
-
|
I tried that one, but it will result in:
```
{"error":"invalid_request","error_description":"The request is missing
a required parameter, includes an invalid parameter value, includes a
parameter more than once, or is otherwise
malformed.","state":"3fc86d63140072273fd3e959c8e7c409:/"}
```
When login on with oauth / openshift.
…On Fri, 3 Feb 2023 at 17:34, Jack wrote:
Sure, try this:
apiVersion: route.openshift.io/v1kind: Routemetadata:
name: prometheus-ui
namespace: openshift-monitoringspec:
path: /
to:
kind: Service
name: prometheus-k8s
port:
targetPort: web
tls:
insecureEdgeTerminationPolicy: Redirect
termination: reencrypt
|
Beta Was this translation helpful? Give feedback.
-
|
Depending on what you're after you can also just make a service account and give it the cluster-monitoring-viewer role and then use that to connect to the thanos-querier endpoint. That's what we do for peeking into the in-cluster prometheus with an external grafana instance. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Current version
4.9.0-0.okd-2022-02-12-140851
I have followed this guide to create a cluster with 1 worker and 1 master node. So, far so good.
But, when I restart the cluster using the steps like this then Promtheus API endpoint or the Prometheus route shows the error like in the screenshot. However, the Thanos querier is available.
How can I troubleshoot it ?
Beta Was this translation helpful? Give feedback.
All reactions