Prometheus is an open-source software application that is used for systems/event monitoring and alerting. It records, collects, and stores real-time data in the form of time series using HTTP pull model, and aids in discovering and monitoring various resources using flexible queries and real-time alerting.
With Prometheus integration, you can automatically fetch scrape jobs configured from Prometheus server and categorize it into various monitor types supported in Applications Manager. Integrating Prometheus with Applications Manager enables you to achieve the following:
Note: Currently, Tomcat-server monitor type is only supported for this integration.
Prometheus server should be reachable to the system where Applications Manager is installed. If Prometheus server is deployed as a Pod/Container, the option cURL through SSH can be used for discovery and data collection, for which, the server should be accessible with localhost IP address or Pod IP address.
For Tomcat server, discovery and data collection is performed using metrics exposed by the exporter. Make sure to deploy the exporter on the Tomcat server/container to scrape metrics from Prometheus. Learn more
Follow the steps given below to integrate Prometheus with Applications Manager:
After performing the above steps, you can view the list of discovered and monitors in the Add-on-settings page. A button named Show Monitors will be present at the top right corner of each added integration thumbnail, clicking which will display the list of monitors added for that integration.
In addition, you can use various options to handle the monitor addition while performing the discovery. Use the Specific Instances option to customize the discoveries based on specific instances. Also, there are options to auto delete, un-manage monitors, and alert users if data is not available on Prometheus server.
Note: Currently, Tomcat-server monitor type is only supported for this integration, wherein you can view performance metrics such as Server Response Time, Thread Usage, Memory utilization, and Web Applications. However, servlet-level metrics will not be shown.