Features
Prometheus is an open-source integrated solution for monitoring, alerting, and time series databases. It provides a standardized data model and efficient data collection, storage, and query interfaces, supporting regular HTTP-based scraping of the operational status of monitored components. By integrating monitoring queries with Prometheus, the system can effectively reduce the load on OCP-Server in terms of data collection and computation, significantly improving the overall throughput performance of the query interface.
Procedure
- Create a new Prometheus data source.
- Modify the
prometheus.yamlconfiguration file. - Restart the Prometheus service.
- Enable the Prometheus data source.
- (Optional) Perform other management operations on the Prometheus data source.
For details, see Create a Prometheus data source and Manage Prometheus data sources.
Considerations
- When upgrading OCP from an earlier version to V4.4.2, if you have integrated Prometheus as described in Integrate OCP monitoring into Prometheus before the upgrade and authentication was not enabled, creating a new Prometheus data source will overwrite the original Prometheus configuration information. After the data source is successfully created, you must manually enable authentication.
- On the same OCP instance, only one of SLS and Prometheus can be enabled.
- To ensure a successful connection between OCP and the Prometheus service, the access method between OCP and Prometheus must be consistent. It is recommended to use HTTPS for higher security but more complex configuration. For details, see HTTPS authentication instructions. If OCP uses HTTP, it can also access Prometheus via HTTP.
