From 6dfd1544dea25945c1767ab5a8ffe7b77162e6ec Mon Sep 17 00:00:00 2001 From: hamedsalim1999 Date: Wed, 8 May 2024 20:37:51 +0200 Subject: [PATCH] Start Adding Prometheus, Tempo and Grafana --- docker-compose.yaml | 7 +------ shared/prometheus.yml | 11 +++++++++++ shared/tempo.yaml | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 shared/prometheus.yml create mode 100644 shared/tempo.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml index 19dffc74..3f486e2f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,4 +1,3 @@ -version: "3.8" services: install_plugins: # This intermediate service is used to install the plugins @@ -33,7 +32,7 @@ services: timeout: 5s retries: 5 gatewayd: - image: gatewaydio/gatewayd:latest + image: gatewaydio/gatewayd:v0.8.8 command: [ "run", "--config", "/gatewayd-files/gatewayd.yaml", @@ -66,7 +65,3 @@ services: depends_on: postgres: condition: service_healthy - redis: - condition: service_healthy - install_plugins: - condition: service_completed_successfully diff --git a/shared/prometheus.yml b/shared/prometheus.yml new file mode 100644 index 00000000..4af693ab --- /dev/null +++ b/shared/prometheus.yml @@ -0,0 +1,11 @@ +global: + scrape_interval: 15s + evaluation_interval: 15s + +scrape_configs: + - job_name: 'prometheus' + static_configs: + - targets: ['localhost:9090'] + - job_name: 'tempo' + static_configs: + - targets: ['tempo:3200'] \ No newline at end of file diff --git a/shared/tempo.yaml b/shared/tempo.yaml new file mode 100644 index 00000000..77853465 --- /dev/null +++ b/shared/tempo.yaml @@ -0,0 +1,33 @@ +auth_enabled: false + +server: + http_listen_port: 3200 + +distributor: + receivers: + jaeger: + zipkin: + otlp: + protocols: + http: + grpc: + +ingester: + trace_idle_period: 10s + traces_per_block: 10000 + +compactor: + compaction: + compaction_window: 1h + block_retention: 1h + compacted_block_retention: 10m + +storage: + trace: + backend: local + wal: + path: /tmp/tempo/wal + bloom_filter_false_positive: 0.05 + index_downsample: 10 + local: + path: /tmp/tempo/traces \ No newline at end of file