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 106d3e334e
2 changed files with 11 additions and 0 deletions

View File

@ -5,6 +5,8 @@ services:
image: alpine image: alpine
volumes: volumes:
- lgtm-config:/lgtm-config - lgtm-config:/lgtm-config
environment:
DRONE_API_KEY: ${DRONE_API_KEY}
command: command:
- /bin/sh - /bin/sh
- -c - -c
@ -14,6 +16,7 @@ services:
cd /lgtm-config cd /lgtm-config
if [ -d "lgtm-stack" ]; then rm -rf lgtm-stack; fi if [ -d "lgtm-stack" ]; then rm -rf lgtm-stack; fi
git clone "https://dev-gitea.sinetcon.com/pglaum/lgtm-stack" git clone "https://dev-gitea.sinetcon.com/pglaum/lgtm-stack"
echo "$DRONE_API_KEY" > /lgtm-config/lgtm-stack/drone-api.key
jaeger: jaeger:
image: jaegertracing/all-in-one:latest image: jaegertracing/all-in-one:latest

View File

@ -7,6 +7,14 @@ scrape_configs:
static_configs: static_configs:
- targets: - targets:
- "traefik:8080" - "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 # - job_name: node_exporter
# static_configs: # static_configs:
# - targets: # - targets: