diff --git a/docker-compose.yml b/docker-compose.yml index 236a60d..cb95fc1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -123,3 +123,18 @@ services: - --host-port=0.0.0.0:8080 ports: - "8080:8080" + + grafana: + image: grafana/grafana:7.5.7 + ports: + - 3000:3000 + restart: unless-stopped + + prometheus: + image: prom/prometheus:v2.45.1 + ports: + - "9090:9090" + volumes: + - ./prometheus:/etc/prometheus + command: + - '--config.file=/etc/prometheus/prometheus.yml' \ No newline at end of file diff --git a/k6 b/k6 new file mode 100755 index 0000000..160cb2f Binary files /dev/null and b/k6 differ diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml new file mode 100644 index 0000000..4c12a24 --- /dev/null +++ b/prometheus/prometheus.yml @@ -0,0 +1,11 @@ +global: + scrape_interval: 15s + +scrape_configs: + - job_name: 'prometheus' + static_configs: + - targets: [ 'host.docker.internal:9090' ] + - job_name: 'endpoints' + static_configs: + - targets: ['gateway:9312', 'manager:9410'] +