:_mod-docs-content-type: ASSEMBLY
[id="external-secrets-monitoring"]
= Monitoring the External Secrets Operator for Red Hat OpenShift
include::_attributes/common-attributes.adoc[]
:context: external-secrets-monitoring

toc::[]

[role="_abstract"]
By default, the {external-secrets-operator} exposes metrics for the Operator and the operands. You can configure OpenShift Monitoring to collect these metrics by using the Prometheus Operator format.

// Enabling user workload monitoring for the external-secrets-operator operand
include::modules/external-secrets-enable-user-workload-monitor.adoc[leveloffset=+1]

[role="_additional-resources"]
.Additional resources
* link:https://docs.redhat.com/en/documentation/monitoring_stack_for_red_hat_openshift/latest/html/configuring_user_workload_monitoring/configuring-metrics-uwm#setting-up-metrics-collection-for-user-defined-projects_configuring-metrics-uwm[Setting up metrics collection for user-defined projects]

// Metrics scraping for external-secrets-operator
include::modules/external-secrets-enable-operator-metrics.adoc[leveloffset=+1]

[role="_additional-resources"]
.Additional resources

* link:https://docs.redhat.com/en/documentation/monitoring_stack_for_red_hat_openshift/latest/html/configuring_user_workload_monitoring/preparing-to-configure-the-monitoring-stack-uwm#configurable-monitoring-components_preparing-to-configure-the-monitoring-stack-uwm[Configurable monitoring components]

// Querying metrics for the external-secrets operator
include::modules/external-secrets-query-operator-metrics.adoc[leveloffset=+1]

[role="_additional-resources"]
.Additional resources

* link:https://docs.redhat.com/en/documentation/monitoring_stack_for_red_hat_openshift/latest/html/accessing_metrics/index[Accessing metrics]


// Metrics scraping for external-secrets operands by using a ServiceMonitor
include::modules/external-secrets-enable-metrics.adoc[leveloffset=+1]

[role="_additional-resources"]
.Additional resources

* link:https://docs.redhat.com/en/documentation/monitoring_stack_for_red_hat_openshift/latest/html/configuring_user_workload_monitoring/preparing-to-configure-the-monitoring-stack-uwm[Configuring user workload monitoring]

// Querying metrics for the external-secrets operands
include::modules/external-secrets-query-metrics.adoc[leveloffset=+1]

[role="_additional-resources"]
.Additional resources

* link:https://docs.redhat.com/en/documentation/monitoring_stack_for_red_hat_openshift/latest/html/accessing_metrics/index[Accessing metrics]
