From f543e5d4aa4200b59a8ea8c224bc5997bbdadd45 Mon Sep 17 00:00:00 2001 From: "Cesarini, Daniele" Date: Thu, 20 Sep 2018 16:45:30 +0100 Subject: [PATCH] added ijanki bundles --- ijanki/ftp-bundle/2.0/manifest.json | 7 ++++++ .../config/packages/ijanki_prometheus.yaml | 22 +++++++++++++++++++ .../0.9/config/routes/ijanki_prometheus.yaml | 3 +++ ijanki/prometheus-bundle/0.9/manifest.json | 10 +++++++++ 4 files changed, 42 insertions(+) create mode 100644 ijanki/ftp-bundle/2.0/manifest.json create mode 100644 ijanki/prometheus-bundle/0.9/config/packages/ijanki_prometheus.yaml create mode 100644 ijanki/prometheus-bundle/0.9/config/routes/ijanki_prometheus.yaml create mode 100644 ijanki/prometheus-bundle/0.9/manifest.json diff --git a/ijanki/ftp-bundle/2.0/manifest.json b/ijanki/ftp-bundle/2.0/manifest.json new file mode 100644 index 00000000..540ef362 --- /dev/null +++ b/ijanki/ftp-bundle/2.0/manifest.json @@ -0,0 +1,7 @@ +{ + "bundles": { + "Ijanki\\Bundle\\FtpBundle\\IjankiFtpBundle": [ + "all" + ] + } +} diff --git a/ijanki/prometheus-bundle/0.9/config/packages/ijanki_prometheus.yaml b/ijanki/prometheus-bundle/0.9/config/packages/ijanki_prometheus.yaml new file mode 100644 index 00000000..ab88a6ae --- /dev/null +++ b/ijanki/prometheus-bundle/0.9/config/packages/ijanki_prometheus.yaml @@ -0,0 +1,22 @@ +ijanki_prometheus: + storage_adapter_service: TweedeGolf\PrometheusClient\Storage\ApcuAdapter + metrics_path: /metrics + collectors: + http_requests_total: + counter: + labels: [url, code] + help: Number of requests + http_request_duration_seconds: + gauge: + labels: [url] + help: Response time + http_request_duration_seconds_bucket: + histogram: + labels: [url] + help: Response times histogram + buckets: [0.1, 0.2, 0.3, 0.5, 0.7, 1, 2, 5, 10, 30, 60] + data_is_fresh: + gauge: + labels: [app, section] + help: is the data fresh + diff --git a/ijanki/prometheus-bundle/0.9/config/routes/ijanki_prometheus.yaml b/ijanki/prometheus-bundle/0.9/config/routes/ijanki_prometheus.yaml new file mode 100644 index 00000000..0f583759 --- /dev/null +++ b/ijanki/prometheus-bundle/0.9/config/routes/ijanki_prometheus.yaml @@ -0,0 +1,3 @@ +ijanki_prometheus: + resource: "@IjankiPrometheusBundle/Resources/config/routing.yml" + prefix: / diff --git a/ijanki/prometheus-bundle/0.9/manifest.json b/ijanki/prometheus-bundle/0.9/manifest.json new file mode 100644 index 00000000..ecdabbaf --- /dev/null +++ b/ijanki/prometheus-bundle/0.9/manifest.json @@ -0,0 +1,10 @@ +{ + "bundles": { + "Ijanki\\Bundle\\PrometheusBundle\\IjankiPrometheusBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}