Querying metrics for the Zero Trust Workload Identity Manager
Query SPIRE Agent and SPIRE Server metrics using the Red Hat OpenShift Container Platform web console or the command line. This helps you monitor the performance of SPIRE components that match specific job labels.
-
You have access to the cluster as a user with the
cluster-adminrole. -
You have installed the Zero Trust Workload Identity Manager.
-
You have deployed the SPIRE Server and SPIRE Agent operands in the cluster.
-
You have enabled monitoring and metrics collection by creating
ServiceMonitorobjects.
-
In the Red Hat OpenShift Container Platform web console, navigate to Observe → Metrics.
-
In the query field, enter the following PromQL expression to query SPIRE Server metrics:
{job="spire-server"} -
In the query field, enter the following PromQL expression to query SPIRE Agent metrics.
{job="spire-agent"}