From ffb7d44024974e1cf7a1aefbfb4e181176f76a67 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Mon, 15 Apr 2024 13:59:16 +0200 Subject: [PATCH] config for thanos Signed-off-by: Marc 'risson' Schmitt --- tests/benchmark/docker-compose.yml | 4 ++++ tests/benchmark/prometheus.yml | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/benchmark/prometheus.yml diff --git a/tests/benchmark/docker-compose.yml b/tests/benchmark/docker-compose.yml index 13766f1b1a..fa7d09bb45 100644 --- a/tests/benchmark/docker-compose.yml +++ b/tests/benchmark/docker-compose.yml @@ -7,11 +7,15 @@ services: - --web.enable-remote-write-receiver - --config.file=/etc/prometheus/prometheus.yml - --storage.tsdb.path=/prometheus + - --storage.tsdb.min-block-duration=2h + - --storage.tsdb.max-block-duration=2h + - --web.enable-lifecycle - --web.console.libraries=/usr/share/prometheus/console_libraries - --web.console.templates=/usr/share/prometheus/consoles ports: - 127.0.0.1:9090:9090 volumes: + - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro - ./prometheus:/prometheus user: root diff --git a/tests/benchmark/prometheus.yml b/tests/benchmark/prometheus.yml new file mode 100644 index 0000000000..6f871b3dae --- /dev/null +++ b/tests/benchmark/prometheus.yml @@ -0,0 +1,9 @@ +--- +global: + scrape_interval: 15s + evaluation_interval: 15s + +scrape_configs: + - job_name: prometheus + static_configs: + - targets: ["localhost:9090"]