add drone scrape config to prometheus
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Philipp Glaum 2023-07-21 11:13:52 +02:00
parent 931f73d263
commit be79ee827b
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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: