Added Monitoring

This commit is contained in:
Patrick Skowronek 2022-11-08 14:25:12 +01:00
parent 23aa8f8274
commit 386c0ed09f
2 changed files with 14 additions and 0 deletions

View File

@ -94,6 +94,8 @@ services:
APP_0_KEY: ${SPOT_BEAM_SECRET_SHORT}
APP_1_ID: report-hub
APP_1_KEY: ${REPORTHUB_BEAM_SECRET_SHORT}
APP_2_ID: monitoring
APP_2_KEY: ${MONITORING_BEAM_SECRET_SHORT}
PRIVKEY_FILE: /run/secrets/proxy.pem
RUST_LOG: debug
ALL_PROXY: http://forward_proxy:3128
@ -104,6 +106,17 @@ services:
- "forward_proxy"
volumes:
- /etc/bridgehead/trusted-ca-certs:/conf/trusted-ca-certs:ro
monitoring:
image: "samply/bridgehead-monitoring:ci"
container_name: bridgehead-monitoring
environment:
HOST: ${HOST}
SITE_NAME: ${SITE_NAME}
PROJECT: ${PROJECT}
BEAM_URL: http://beam-proxy:8081
PROXY_ID: monitoring.${PROXY_ID}
MONITORING_TARGET: ${MONITORING_TARGET}
KEY: ${MONITORING_BEAM_SECRET_SHORT}
volumes:

View File

@ -4,6 +4,7 @@ PROXY_ID=${SITE_ID}.${BROKER_ID}
SPOT_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
SPOT_BEAM_SECRET_LONG="ApiKey spot.${PROXY_ID} ${SPOT_BEAM_SECRET_SHORT}"
REPORTHUB_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
MONITORING_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
REPORTHUB_BEAM_SECRET_LONG="ApiKey report-hub.${PROXY_ID} ${REPORTHUB_BEAM_SECRET_SHORT}"
SUPPORT_EMAIL=support-ccp@dkfz-heidelberg.de
PRIVATEKEYFILENAME=/etc/bridgehead/pki/${SITE_ID}.priv.pem