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"]