This extension provides a Prometheus metrics endpoint for TYPO3 instances. It exposes various TYPO3-specific metrics that can be scraped by Prometheus to monitor the health and performance of your TYPO3 site.
-
Install the extension via composer:
composer require mfd/typo3-prometheus -
Activate the extension in the Extension Manager or via command line:
vendor/bin/typo3 extension:activate prometheus
After installation, a metrics endpoint will be available at /metrics. This endpoint will return Prometheus-compatible metrics in the OpenMetrics text format.
The following metrics are currently exposed:
typo3_version_info: Information about the TYPO3 version and application contexttypo3_memory_usage_bytes: Current memory usage in bytestypo3_memory_peak_usage_bytes: Peak memory usage in bytestypo3_pages_total: Total number of pages in the systemtypo3_content_elements_total: Total number of content elements
No additional configuration is needed. The extension works out of the box.
It's recommended to restrict access to the /metrics endpoint in production environments, as it may expose sensitive information. You can use your web server's configuration to restrict access based on IP addresses or authentication.
This extension is licensed under the terms of the GNU General Public License version 3 or later.