Accessing metrics
Access metrics from the Thanos dashboard.
About this task
Thanos is a highly available open source Prometheus setup with long-term storage capabilities. Use the following procedure to access metrics.
Procedure
Extract your Thanos dashboard host.
oc get route thanos-querier -n openshift-monitoring
Tip: Prometheus is not exposed by default. If you are unable to access the Prometheus
metrics, verify that the Prometheus metrics endpoints are working by running the following command.
oc port-forward -n openshift-user-workload-monitoring pod/prometheus-user-workload-0 9090
Then open the following URL in a web browser and review the status of the targets directly in the
Prometheus UI.http://localhost:9090/targets