This is a cache of https://docs.openshift.com/dedicated/operators/operator_sdk/osdk-monitoring-prometheus.html. It is a snapshot of the page at 2024-11-24T05:20:24.584+0000.
Configuring built-in monitoring with Prometheus - Developing Operators | Operators | OpenShift Dedicated
×

The Operator SDK provides built-in monitoring support using the Prometheus Operator, which you can use to expose custom metrics for your Operator.

The Red Hat-supported version of the Operator SDK CLI tool, including the related scaffolding and testing tools for Operator projects, is deprecated and is planned to be removed in a future release of OpenShift Dedicated. Red Hat will provide bug fixes and support for this feature during the current release lifecycle, but this feature will no longer receive enhancements and will be removed from future OpenShift Dedicated releases.

The Red Hat-supported version of the Operator SDK is not recommended for creating new Operator projects. Operator authors with existing Operator projects can use the version of the Operator SDK CLI tool released with OpenShift Dedicated to maintain their projects and create Operator releases targeting newer versions of OpenShift Dedicated.

The following related base images for Operator projects are not deprecated. The runtime functionality and configuration APIs for these base images are still supported for bug fixes and for addressing CVEs.

  • The base image for Ansible-based Operator projects

  • The base image for helm-based Operator projects

For information about the unsupported, community-maintained, version of the Operator SDK, see Operator SDK (Operator Framework).

By default, OpenShift Dedicated provides a Prometheus Operator in the openshift-user-workload-monitoring project. You should use this Prometheus instance to monitor user workloads in OpenShift Dedicated.

Do not use the Prometheus Operator in the openshift-monitoring project. Red Hat Site Reliability Engineers (SRE) use this Prometheus instance to monitor core cluster components.

Additional resources