File tree Expand file tree Collapse file tree 4 files changed +32
-32
lines changed
Expand file tree Collapse file tree 4 files changed +32
-32
lines changed Original file line number Diff line number Diff line change 7272 echo "_APP_VERSION=${{ env.TAG }}" >> .env
7373 echo "_APP_DOMAIN=${{ secrets.PRD_APP_DOMAIN }}" >> .env
7474 echo "_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=${{ secrets.APP_SYSTEM_SECURITY_EMAIL_ADDRESS }}" >> .env
75- echo "SEMATEXT_TOKEN =${{ secrets.SEMATEXT_TOKEN }}" >> .env
75+ echo "_APP_BETTER_STACK_INCIDENT_URL =${{ secrets.BETTER_STACK_INCIDENT_URL }}" >> .env
7676
7777 echo ${{ secrets.GH_REGISTRY_TOKEN }} | docker login ghcr.io --username ${{ env.REGISTRY_USERNAME }} --password-stdin
7878 docker-compose -f ${{ env.STACK_FILE }} config
Original file line number Diff line number Diff line change 7474 echo "_APP_VERSION=${{ env.TAG }}" >> .env
7575 echo "_APP_DOMAIN=${{ secrets.STG_APP_DOMAIN }}" >> .env
7676 echo "_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=${{ secrets.APP_SYSTEM_SECURITY_EMAIL_ADDRESS }}" >> .env
77- echo "SEMATEXT_TOKEN =${{ secrets.SEMATEXT_TOKEN }}" >> .env
77+ echo "_APP_BETTER_STACK_INCIDENT_URL =${{ secrets.BETTER_STACK_INCIDENT_URL }}" >> .env
7878
7979 echo ${{ secrets.GH_REGISTRY_TOKEN }} | docker login ghcr.io --username ${{ env.REGISTRY_USERNAME }} --password-stdin
8080 docker-compose -f ${{ env.STACK_FILE }} config
Original file line number Diff line number Diff line change @@ -119,23 +119,23 @@ services:
119119 - TIME_BETWEEN_RUNS=3600
120120 - UNUSED_TIME=6h
121121
122- sematext-agent :
123- image : sematext/agent:latest
124- environment :
125- REGION : EU
126- INFRA_TOKEN : $SEMATEXT_TOKEN
122+ resource-monitor :
123+ image : ghcr.io/appwrite/monitoring:0.1.0
124+ entrypoint : monitoring
125+ command :
126+ - " --url=${_APP_BETTER_STACK_INCIDENT_URL}"
127+ - " --interval=60"
128+ - " --cpu-limit=85"
129+ - " --memory-limit=80"
130+ - " --disk-limit=85"
131+ hostname : " {{.Node.Hostname}}"
132+ << : *x-logging
133+ volumes :
134+ - /mnt:/mnt:ro
127135 deploy :
136+ << : *x-update-config
137+ endpoint_mode : dnsrr
128138 mode : global
129- restart_policy :
130- condition : any
131- volumes :
132- - /:/hostfs:ro
133- - /etc/passwd:/etc/passwd:ro
134- - /etc/group:/etc/group:ro
135- - /sys:/host/sys:ro
136- - /dev:/hostfs/dev:ro
137- - /var/run:/var/run
138- - /sys/kernel/debug:/sys/kernel/debug
139139
140140networks :
141141 cloud :
Original file line number Diff line number Diff line change @@ -114,23 +114,23 @@ services:
114114 volumes :
115115 - /var/run/docker.sock:/var/run/docker.sock
116116
117- sematext-agent :
118- image : sematext/agent:latest
119- environment :
120- REGION : EU
121- INFRA_TOKEN : $SEMATEXT_TOKEN
117+ resource-monitor :
118+ image : ghcr.io/appwrite/monitoring:0.1.0
119+ entrypoint : monitoring
120+ command :
121+ - " --url=${_APP_BETTER_STACK_INCIDENT_URL}"
122+ - " --interval=60"
123+ - " --cpu-limit=85"
124+ - " --memory-limit=80"
125+ - " --disk-limit=85"
126+ hostname : " {{.Node.Hostname}}"
127+ << : *x-logging
128+ volumes :
129+ - /mnt:/mnt:ro
122130 deploy :
131+ << : *x-update-config
132+ endpoint_mode : dnsrr
123133 mode : global
124- restart_policy :
125- condition : any
126- volumes :
127- - /:/hostfs:ro
128- - /etc/passwd:/etc/passwd:ro
129- - /etc/group:/etc/group:ro
130- - /sys:/host/sys:ro
131- - /dev:/hostfs/dev:ro
132- - /var/run:/var/run
133- - /sys/kernel/debug:/sys/kernel/debug
134134
135135networks :
136136 cloud :
You can’t perform that action at this time.
0 commit comments