From d60e43381006e1fa27844fb444bc0e22d2c93adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Tanneux?= Date: Fri, 8 Jul 2022 13:08:32 +0200 Subject: [PATCH] Update prometheus metrics bundle (#1416) * Update recipes for artprima/prometheus v1.14 (artprima/prometheus-metrics-bundle#75) * Add new line at the end of config file --- .../config/packages/prometheus_metrics.yaml | 21 +++++++++++++++++++ .../1.14/config/routes/metrics.yaml | 2 ++ .../1.14/manifest.json | 11 ++++++++++ 3 files changed, 34 insertions(+) create mode 100644 artprima/prometheus-metrics-bundle/1.14/config/packages/prometheus_metrics.yaml create mode 100644 artprima/prometheus-metrics-bundle/1.14/config/routes/metrics.yaml create mode 100644 artprima/prometheus-metrics-bundle/1.14/manifest.json diff --git a/artprima/prometheus-metrics-bundle/1.14/config/packages/prometheus_metrics.yaml b/artprima/prometheus-metrics-bundle/1.14/config/packages/prometheus_metrics.yaml new file mode 100644 index 00000000..7347ea7c --- /dev/null +++ b/artprima/prometheus-metrics-bundle/1.14/config/packages/prometheus_metrics.yaml @@ -0,0 +1,21 @@ +artprima_prometheus_metrics: + namespace: myapp + storage: '%env(PROM_METRICS_DSN)%' + + ignored_routes: + - prometheus_bundle_prometheus + - _wdt + + # used to disable default application metrics + #disable_default_metrics: false + + # Recommended to disable default metrics from promphp/prometheus_client_php + # see https://github.com/PromPHP/prometheus_client_php/issues/62 + disable_default_promphp_metrics: true + + # used to enable console metrics + #enable_console_metrics: false + +when@test: + artprima_prometheus_metrics: + storage: in_memory diff --git a/artprima/prometheus-metrics-bundle/1.14/config/routes/metrics.yaml b/artprima/prometheus-metrics-bundle/1.14/config/routes/metrics.yaml new file mode 100644 index 00000000..fa30eee0 --- /dev/null +++ b/artprima/prometheus-metrics-bundle/1.14/config/routes/metrics.yaml @@ -0,0 +1,2 @@ +app_metrics: + resource: '@ArtprimaPrometheusMetricsBundle/Resources/config/routing.xml' diff --git a/artprima/prometheus-metrics-bundle/1.14/manifest.json b/artprima/prometheus-metrics-bundle/1.14/manifest.json new file mode 100644 index 00000000..a4ddefdc --- /dev/null +++ b/artprima/prometheus-metrics-bundle/1.14/manifest.json @@ -0,0 +1,11 @@ +{ + "bundles": { + "Artprima\\PrometheusMetricsBundle\\ArtprimaPrometheusMetricsBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "PROM_METRICS_DSN": "apcu" + } +}