1
0
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:
Andrew Taylor
2025-03-19 09:16:37 -04:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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.