$ oc -n openshift-monitoring get routes
To work with data gathered by the monitoring stack, you might want to use the Prometheus, Alertmanager, and Grafana interfaces. They are available by default.
You can access Prometheus, Alerting, and Grafana web UIs using a web browser through the OpenShift Container Platform web console.
The Alerting UI accessed in this procedure is the new interface for Alertmanager. |
Authentication is performed against the OpenShift Container Platform identity and uses the same credentials or means of authentication as is used elsewhere in OpenShift Container Platform. You must use a role that has read access to all namespaces, such as the cluster-monitoring-view
cluster role.
Navigate to the OpenShift Container Platform web console and authenticate.
To access Prometheus, navigate to the "Monitoring" → "Metrics" page.
To access the Alerting UI, navigate to the "Monitoring" → "Alerting" page.
To access Grafana, navigate to the "Monitoring" → "Dashboards" page.
You can access Prometheus, Alertmanager, and Grafana web UIs using the oc
tool and a web browser.
The Alertmanager UI accessed in this procedure is the old interface for Alertmanager. |
Authentication is performed against the OpenShift Container Platform identity and uses the same credentials or means of authentication as is used elsewhere in OpenShift Container Platform. You must use a role that has read access to all namespaces, such as the cluster-monitoring-view
cluster role.
Run:
$ oc -n openshift-monitoring get routes
NAME HOST/PORT ...
alertmanager-main alertmanager-main-openshift-monitoring.apps._url_.openshift.com ...
grafana grafana-openshift-monitoring.apps._url_.openshift.com ...
prometheus-k8s prometheus-k8s-openshift-monitoring.apps._url_.openshift.com ...
Prepend https://
to the address, you cannot access web UIs using unencrypted connection.
For example, this is the resulting URL for Alertmanager:
https://alertmanager-main-openshift-monitoring.apps._url_.openshift.com
Navigate to the address using a web browser and authenticate.
For documentation on the new interface for Alertmanager, see Managing cluster alerts.
The monitoring routes are managed by the Cluster Monitoring Operator and cannot be modified by the user. |