Skip to content

Commit

Permalink
Added AC server
Browse files Browse the repository at this point in the history
  • Loading branch information
GilHoggarth committed Apr 27, 2024
1 parent 63f1d8a commit a88ce1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions monitor/aws/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ services:
extra_hosts:
- 'fc:172.31.43.254'
- "monitor:${SERVER_IP}"
- 'ac:172.31.20.115'
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
Expand Down
1 change: 1 addition & 0 deletions monitor/aws/prometheus/prometheus.yml-template
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ scrape_configs:
- targets:
- "${PROMETHEUS_SERVICE_NAME}:9100"
- "${FC_PROMETHEUS_SERVICE_NAME}:9100"
- "${AC_PROMETHEUS_SERVICE_NAME}:9100"

- job_name: 'federate'
scrape_interval: 20s
Expand Down
1 change: 1 addition & 0 deletions monitor/aws/start_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ envsubst < ./alertmanager/config.yml-template > ./alertmanager/config.yml
# prometheus
export PROMETHEUS_SERVICE_NAME='monitor'
export FC_PROMETHEUS_SERVICE_NAME='fc'
export AC_PROMETHEUS_SERVICE_NAME='ac'
export PROMETHEUS_DATA=${STORAGE_PATH}/prometheus
export PROMETHEUS_PORT=9090
[[ -d ${PROMETHEUS_DATA}/ ]] || mkdir -p ${PROMETHEUS_DATA}
Expand Down

0 comments on commit a88ce1e

Please sign in to comment.