PHPackages                             cors/prometheus - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cors/prometheus

ActivePimcore-bundle[Utility &amp; Helpers](/categories/utility)

cors/prometheus
===============

CORS - Prometheus

2.0.1(4mo ago)45proprietaryPHPPHP &gt;=8.3CI failing

Since Apr 16Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/cors-gmbh/pimcore-prometheus)[ Packagist](https://packagist.org/packages/cors/prometheus)[ Docs](http://www.cors.gmbh)[ RSS](/packages/cors-prometheus/feed)WikiDiscussions 12.x Synced today

READMEChangelog (3)Dependencies (6)Versions (14)Used By (0)

[![CORS.gmbh](https://github.com/cors-gmbh/.github/raw/main/cors-we-want-you-3.jpg)](https://github.com/cors-gmbh/.github/raw/main/cors-we-want-you-3.jpg)

CORS Pimcore Prometheus
-----------------------

[](#cors-pimcore-prometheus)

Expose Pimcore Metrics to Prometheus. This includes the following metrics:

- Installed Bundles and Versions
- Pimcore Sites
- Tables and row Counts
- Symfony Messenger Processed Messages Count

### Installation

[](#installation)

1. Install and enable the bundle

```
composer require cors/prometheus
bin/console pimcore:bundle:enable CORSPrometheusBundle
```

2. Configure the routes

```
# app/routes.yaml

_cors_prometheus:
  resource: "@CORSPrometheusBundle/Resources/config/routing.yaml"
```

Make sure to not expose the `/metrics` route to public access! We do that with nginx configs:

```
location ~* /metrics {
  deny all;
  return 403;
}
```

You can also add a event listener that uses a Key to protect the route:

```
