Skip to content

Commit e5e11ab

Browse files
authored
Merge pull request #56075 from bburt-rh/RHDEVDOCS-4899-fix-oc-command-syntax-in-enable-query-logging
RHDEVDOCS-4899-fix-oc-command-syntax-in-enable-query-logging
2 parents 6d4acab + 1bfad86 commit e5e11ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/monitoring-enabling-query-logging-for-thanos-querier.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ $ oc -n openshift-monitoring get pods
7171
+
7272
[source,terminal]
7373
----
74-
$ token=`oc sa get-token prometheus-k8s -n openshift-monitoring`
74+
$ token=`oc create token prometheus-k8s -n openshift-monitoring`
7575
$ oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://thanos-querier.openshift-monitoring.svc:9091/api/v1/query?query=cluster_version'
7676
----
7777
. Run the following command to read the query log:

0 commit comments

Comments
 (0)