Skip to content

Commit ecca33d

Browse files
Merge pull request #1563 from appwrite/chore-deprecate-sematext
feat: initial commit
2 parents bd987fa + b08c2c7 commit ecca33d

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

.github/workflows/production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
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

.github/workflows/staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
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

docker/production.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff 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

140140
networks:
141141
cloud:

docker/stage.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff 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

135135
networks:
136136
cloud:

0 commit comments

Comments
 (0)