Skip to content

Commit

Permalink
Added alertmanager back into service
Browse files Browse the repository at this point in the history
  • Loading branch information
GilHoggarth committed Nov 24, 2023
1 parent 0ad8f8c commit afb6af0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
26 changes: 13 additions & 13 deletions monitor/aws/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ version: '3.2'
# prometheus monitoring service

services:
# alertmanager:
# image: prom/alertmanager
# ports:
# - "${ALERTMANAGER_PORT}:9093"
# volumes:
# - ./alertmanager:/etc/alertmanager
# - "${ALERTMANAGER_DATA}:/alertmanager"
# command:
# - '--config.file=/etc/alertmanager/config.yml'
# - '--storage.path=/alertmanager'
# - '--web.external-url=http://${ALERTMANAGER_SERVICE_NAME}/'
alertmanager:
image: prom/alertmanager
ports:
- "${ALERTMANAGER_PORT}:9093"
volumes:
- ./alertmanager:/etc/alertmanager
- "${ALERTMANAGER_DATA}:/alertmanager"
command:
- '--config.file=/etc/alertmanager/config.yml'
- '--storage.path=/alertmanager'
- '--web.external-url=http://${ALERTMANAGER_SERVICE_NAME}/'

prometheus:
image: prom/prometheus:v2.30.3
ports:
- "${PROMETHEUS_PORT}:9090"
# depends_on:
# - alertmanager:alertmanager
depends_on:
- alertmanager:alertmanager
user: root
volumes:
- ./prometheus:/etc/prometheus
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions monitor/aws/start_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ STORAGE_PATH=/mnt/data/monitor


# alertmanager
#export ALERTMANAGER_SERVICE_NAME='monitor'
#export ALERTMANAGER_DATA=${STORAGE_PATH}/alertmanager
#export ALERTMANAGER_PORT=9093
#[[ -d ${ALERTMANAGER_DATA}/ ]] || mkdir -p ${ALERTMANAGER_DATA}
#envsubst < ./alertmanager/config.yml-template > ./alertmanager/config.yml
export ALERTMANAGER_SERVICE_NAME='monitor'
export ALERTMANAGER_DATA=${STORAGE_PATH}/alertmanager
export ALERTMANAGER_PORT=9093
[[ -d ${ALERTMANAGER_DATA}/ ]] || mkdir -p ${ALERTMANAGER_DATA}
envsubst < ./alertmanager/config.yml-template > ./alertmanager/config.yml


# prometheus
Expand Down

0 comments on commit afb6af0

Please sign in to comment.