From 843b411272ad84a21f359f413c5e065add52e806 Mon Sep 17 00:00:00 2001 From: Denis V Date: Sat, 20 Oct 2018 15:51:01 +0200 Subject: [PATCH 1/2] add support for artprima/prometheus-metrics-bundle --- .../1.0/config/packages/prometheus_metrics.yaml | 6 ++++++ .../1.0/config/packages/test/prometheus_metrics.yaml | 6 ++++++ .../1.0/config/routes/metrics.yaml | 2 ++ artprima/prometheus-metrics-bundle/1.0/manifest.json | 8 ++++++++ 4 files changed, 22 insertions(+) create mode 100644 artprima/prometheus-metrics-bundle/1.0/config/packages/prometheus_metrics.yaml create mode 100644 artprima/prometheus-metrics-bundle/1.0/config/packages/test/prometheus_metrics.yaml create mode 100644 artprima/prometheus-metrics-bundle/1.0/config/routes/metrics.yaml create mode 100644 artprima/prometheus-metrics-bundle/1.0/manifest.json diff --git a/artprima/prometheus-metrics-bundle/1.0/config/packages/prometheus_metrics.yaml b/artprima/prometheus-metrics-bundle/1.0/config/packages/prometheus_metrics.yaml new file mode 100644 index 00000000..e3e12106 --- /dev/null +++ b/artprima/prometheus-metrics-bundle/1.0/config/packages/prometheus_metrics.yaml @@ -0,0 +1,6 @@ +artprima_prometheus_metrics: + namespace: myapp + type: apcu + ignored_routes: + - prometheus_bundle_prometheus + - _wdt diff --git a/artprima/prometheus-metrics-bundle/1.0/config/packages/test/prometheus_metrics.yaml b/artprima/prometheus-metrics-bundle/1.0/config/packages/test/prometheus_metrics.yaml new file mode 100644 index 00000000..3599a0f7 --- /dev/null +++ b/artprima/prometheus-metrics-bundle/1.0/config/packages/test/prometheus_metrics.yaml @@ -0,0 +1,6 @@ +artprima_prometheus_metrics: + namespace: myapp + type: in_memory + ignored_routes: + - prometheus_bundle_prometheus + - _wdt diff --git a/artprima/prometheus-metrics-bundle/1.0/config/routes/metrics.yaml b/artprima/prometheus-metrics-bundle/1.0/config/routes/metrics.yaml new file mode 100644 index 00000000..fa30eee0 --- /dev/null +++ b/artprima/prometheus-metrics-bundle/1.0/config/routes/metrics.yaml @@ -0,0 +1,2 @@ +app_metrics: + resource: '@ArtprimaPrometheusMetricsBundle/Resources/config/routing.xml' diff --git a/artprima/prometheus-metrics-bundle/1.0/manifest.json b/artprima/prometheus-metrics-bundle/1.0/manifest.json new file mode 100644 index 00000000..d10a6b70 --- /dev/null +++ b/artprima/prometheus-metrics-bundle/1.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Artprima\\PrometheusMetricsBundle\\ArtprimaPrometheusMetricsBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} From 33bb8c0cb8f7661753d4caff3d1ace28f5fd4180 Mon Sep 17 00:00:00 2001 From: Denis Voytyuk Date: Sat, 17 Nov 2018 13:27:27 +0100 Subject: [PATCH 2/2] remove duplicate params from test config --- .../1.0/config/packages/test/prometheus_metrics.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/artprima/prometheus-metrics-bundle/1.0/config/packages/test/prometheus_metrics.yaml b/artprima/prometheus-metrics-bundle/1.0/config/packages/test/prometheus_metrics.yaml index 3599a0f7..80ad98d1 100644 --- a/artprima/prometheus-metrics-bundle/1.0/config/packages/test/prometheus_metrics.yaml +++ b/artprima/prometheus-metrics-bundle/1.0/config/packages/test/prometheus_metrics.yaml @@ -1,6 +1,2 @@ artprima_prometheus_metrics: - namespace: myapp type: in_memory - ignored_routes: - - prometheus_bundle_prometheus - - _wdt