diff --git a/docker-compose.yml b/docker-compose.yml index 00c0944..3120f4a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,8 @@ services: image: alpine volumes: - lgtm-config:/lgtm-config + environment: + DRONE_API_KEY: ${DRONE_API_KEY} command: - /bin/sh - -c @@ -14,6 +16,7 @@ services: cd /lgtm-config if [ -d "lgtm-stack" ]; then rm -rf lgtm-stack; fi git clone "https://dev-gitea.sinetcon.com/pglaum/lgtm-stack" + echo "$DRONE_API_KEY" > /lgtm-config/lgtm-stack/drone-api.key jaeger: image: jaegertracing/all-in-one:latest diff --git a/prometheus.yaml b/prometheus.yaml index 92139a8..42a2944 100644 --- a/prometheus.yaml +++ b/prometheus.yaml @@ -7,6 +7,14 @@ scrape_configs: static_configs: - targets: - "traefik:8080" + - job_name: 'drone' + metrics_path: /metrics + static_configs: + - targets: + - "drone:80" + authorization: + type: Bearer + credentials_file: /lgtm-config/lgtm-stack/drone-api.key # - job_name: node_exporter # static_configs: # - targets: