Download the PHP package acseo/sylius-prometheus-metrics-plugin without Composer
On this page you can find all versions of the php package acseo/sylius-prometheus-metrics-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download acseo/sylius-prometheus-metrics-plugin
More information about acseo/sylius-prometheus-metrics-plugin
Files in acseo/sylius-prometheus-metrics-plugin
Package sylius-prometheus-metrics-plugin
Short Description Sylius Prometheus Metrics Plugin
License MIT
Informations about the package sylius-prometheus-metrics-plugin
Sylius Prometheus Metrics
Features
Observability
We use the artprima/prometheus-metrics-bundle (https://github.com/artprima/prometheus-metrics-bundle) bundle to collect metrics in the Prometheus format, which can then be used to build a dashboard with Grafana. These metrics are visible at the /metrics/prometheus URL of the website.
Default metrics are generated. It is possible to create custom metrics to track "Business" data, such as the number of created orders or the order amount.
Installation for development
- Run
make install
.
Installation on your project
-
Run
$ composer require acseo/sylius-prometheus-metrics-plugin
. - Add these few lines to the
config/state_machine/sylius_payment.yaml
Installation without Symfony Flex
-
Run
$ composer require acseo/sylius-prometheus-metrics-plugin
. -
Enable the plugin in bundles.php
-
Add this file
config/packages/prometheus_metrics.yaml
-
Add the metrics routes
config/routes/metrics.yaml
- Add environment variables
All versions of sylius-prometheus-metrics-plugin with dependencies
sylius/sylius Version ^1.0 || ^2.0
artprima/prometheus-metrics-bundle Version ~1.16.0 || ~1.17.0