mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * security/zero_trust_workload_identity_manager/zero-trust-manager-monitoring.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="zero-trust-manager-query-metrics_{context}"]
|
|
= Querying metrics for the {zero-trust-full}
|
|
|
|
As a cluster administrator, or as a user with view access to all namespaces, you can query SPIRE Agent and SPIRE Server metrics by using the {product-title} web console or the command line. The query retrieves all the metrics collected from the SPIRE components that match the specified job labels.
|
|
|
|
.Prerequisites
|
|
|
|
* You have access to the cluster as a user with the `cluster-admin` role.
|
|
|
|
* You have installed the {zero-trust-full}.
|
|
|
|
* You have deployed the SPIRE Server and SPIRE Agent operands in the cluster.
|
|
|
|
* You have enabled monitoring and metrics collection by creating `ServiceMonitor` objects.
|
|
|
|
.Procedure
|
|
|
|
. In the {product-title} web console, navigate to *Observe* -> *Metrics*.
|
|
|
|
. In the query field, enter the following PromQL expression to query SPIRE Server metrics:
|
|
+
|
|
[source,promql]
|
|
----
|
|
{job="spire-server"}
|
|
----
|
|
|
|
. In the query field, enter the following PromQL expression to query SPIRE Agent metrics.
|
|
+
|
|
[source,promql]
|
|
----
|
|
{job="spire-agent"}
|
|
---- |