From cc83421a4d9a6176f7920dbb5df2720a03cc6b14 Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Sun, 6 Jun 2021 14:03:49 +0200 Subject: [PATCH] feat(ketchup): Disabling gzip compression for prometheus Signed-off-by: Vincent Boutour --- .github/dependabot.yaml | 2 +- README.md | 6 ++++-- cmd/deploy/deploy.go | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 075fc20..14d450a 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -14,7 +14,7 @@ updates: directory: / schedule: interval: weekly - day: sunday + day: saturday commit-message: prefix: chore include: scope diff --git a/README.md b/README.md index aa6474b..3078dac 100644 --- a/README.md +++ b/README.md @@ -84,11 +84,13 @@ Usage of deploy: -okStatus int [http] Healthy HTTP Status code {DEPLOY_OK_STATUS} (default 204) -port uint - [server] Listen port {DEPLOY_PORT} (default 1080) + [server] Listen port (0 to disable) {DEPLOY_PORT} (default 1080) -prometheusAddress string [prometheus] Listen address {DEPLOY_PROMETHEUS_ADDRESS} -prometheusCert string [prometheus] Certificate file {DEPLOY_PROMETHEUS_CERT} + -prometheusGzip + [prometheus] Enable gzip compression of metrics output {DEPLOY_PROMETHEUS_GZIP} -prometheusIdleTimeout string [prometheus] Idle Timeout {DEPLOY_PROMETHEUS_IDLE_TIMEOUT} (default "10s") -prometheusIgnore string @@ -96,7 +98,7 @@ Usage of deploy: -prometheusKey string [prometheus] Key file {DEPLOY_PROMETHEUS_KEY} -prometheusPort uint - [prometheus] Listen port {DEPLOY_PROMETHEUS_PORT} (default 9090) + [prometheus] Listen port (0 to disable) {DEPLOY_PROMETHEUS_PORT} (default 9090) -prometheusReadTimeout string [prometheus] Read Timeout {DEPLOY_PROMETHEUS_READ_TIMEOUT} (default "5s") -prometheusShutdownTimeout string diff --git a/cmd/deploy/deploy.go b/cmd/deploy/deploy.go index 0e7e2d5..35bf93b 100644 --- a/cmd/deploy/deploy.go +++ b/cmd/deploy/deploy.go @@ -28,7 +28,7 @@ func main() { alcotestConfig := alcotest.Flags(fs, "") loggerConfig := logger.Flags(fs, "logger") - prometheusConfig := prometheus.Flags(fs, "prometheus") + prometheusConfig := prometheus.Flags(fs, "prometheus", flags.NewOverride("Gzip", false)) owaspConfig := owasp.Flags(fs, "") apiConfig := api.Flags(fs, "api")