From ef36f1cc737054dc81150e7314f88c932f717b93 Mon Sep 17 00:00:00 2001 From: Riya Chakraborty Date: Tue, 2 Jul 2024 10:07:40 -0700 Subject: [PATCH 1/2] add gauges --- docker-compose.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f88d74d99e..8609d12846 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -177,8 +177,7 @@ services: - "sentry-secrets:/etc/zookeeper/secrets" healthcheck: <<: *healthcheck_defaults - test: - ["CMD-SHELL", 'echo "ruok" | nc -w 2 localhost 2181 | grep imok'] + test: ["CMD-SHELL", 'echo "ruok" | nc -w 2 localhost 2181 | grep imok'] kafka: <<: *restart_policy depends_on: @@ -250,7 +249,8 @@ services: # Override the entrypoint in order to avoid using envvars for config. # Futz with settings so we can keep mmdb and conf in same dir on host # (image looks for them in separate dirs by default). - entrypoint: ["/usr/bin/geoipupdate", "-d", "/sentry", "-f", "/sentry/GeoIP.conf"] + entrypoint: + ["/usr/bin/geoipupdate", "-d", "/sentry", "-f", "/sentry/GeoIP.conf"] volumes: - "./geoip:/sentry" snuba-api: @@ -293,6 +293,9 @@ services: snuba-generic-metrics-counters-consumer: <<: *snuba_defaults command: rust-consumer --storage generic_metrics_counters_raw --consumer-group snuba-gen-metrics-counters-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset + snuba-generic-metrics-gauges-consumer: + <<: *snuba_defaults + command: consumer --storage generic_metrics_gauges_raw --consumer-group snuba-gen-metrics-gauges-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset snuba-replacer: <<: *snuba_defaults command: replacer --storage errors --auto-offset-reset=latest --no-strict-offset-reset From 1c0faa75f91db2b2b780d90baf293efdec76013f Mon Sep 17 00:00:00 2001 From: Riya Chakraborty Date: Wed, 3 Jul 2024 11:06:42 -0700 Subject: [PATCH 2/2] use rust consumer instead --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8609d12846..e524d0fd0e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -295,7 +295,7 @@ services: command: rust-consumer --storage generic_metrics_counters_raw --consumer-group snuba-gen-metrics-counters-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset snuba-generic-metrics-gauges-consumer: <<: *snuba_defaults - command: consumer --storage generic_metrics_gauges_raw --consumer-group snuba-gen-metrics-gauges-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset + command: rust-consumer --storage generic_metrics_gauges_raw --consumer-group snuba-gen-metrics-gauges-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset snuba-replacer: <<: *snuba_defaults command: replacer --storage errors --auto-offset-reset=latest --no-strict-offset-reset