mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
Merge pull request #90619 from openshift-cherrypick-robot/cherry-pick-90345-to-enterprise-4.19
[enterprise-4.19] OBSDOCS-1394: Issue in file observability/monitoring/accessing-third-…
This commit is contained in:
@@ -34,7 +34,7 @@ $ TOKEN=$(oc whoami -t)
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ HOST=$(oc -n openshift-monitoring get route thanos-querier -ojsonpath={.status.ingress[].host})
|
||||
$ HOST=$(oc -n openshift-monitoring get route thanos-querier -ojsonpath='{.status.ingress[].host}')
|
||||
----
|
||||
|
||||
. Set the namespace to the namespace in which your service is running by using the following command:
|
||||
|
||||
@@ -32,7 +32,7 @@ $ TOKEN=$(oc whoami -t)
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ HOST=$(oc -n openshift-monitoring get route alertmanager-main -ojsonpath={.status.ingress[].host})
|
||||
$ HOST=$(oc -n openshift-monitoring get route alertmanager-main -ojsonpath='{.status.ingress[].host}')
|
||||
----
|
||||
|
||||
. Query the service API receivers for Alertmanager by running the following command:
|
||||
|
||||
@@ -75,7 +75,7 @@ endif::openshift-dedicated,openshift-rosa-hcp,openshift-rosa[]
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ HOST=$(oc -n openshift-monitoring get route prometheus-k8s -ojsonpath={.status.ingress[].host})
|
||||
$ HOST=$(oc -n openshift-monitoring get route prometheus-k8s -ojsonpath='{.status.ingress[].host}')
|
||||
----
|
||||
+
|
||||
.. Extract an authentication token by running the following command:
|
||||
|
||||
@@ -57,7 +57,7 @@ $ TOKEN=$(oc whoami -t)
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ HOST=$(oc -n openshift-monitoring get route prometheus-k8s-federate -ojsonpath={.status.ingress[].host})
|
||||
$ HOST=$(oc -n openshift-monitoring get route prometheus-k8s-federate -ojsonpath='{.status.ingress[].host}')
|
||||
----
|
||||
|
||||
. Query metrics from the `/federate` route.
|
||||
|
||||
Reference in New Issue
Block a user