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
This commit is contained in:
Sébastien Tanneux
2022-07-08 13:08:32 +02:00
committed by GitHub
parent 55bdc3012b
commit d60e433810
3 changed files with 34 additions and 0 deletions

View File

@@ -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

View File

@@ -0,0 +1,2 @@
app_metrics:
resource: '@ArtprimaPrometheusMetricsBundle/Resources/config/routing.xml'

View File

@@ -0,0 +1,11 @@
{
"bundles": {
"Artprima\\PrometheusMetricsBundle\\ArtprimaPrometheusMetricsBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"PROM_METRICS_DSN": "apcu"
}
}