forked from alerta/alerta
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.21 KB
/
performance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Performance
on:
push:
branches: [ master, release/* ]
tags: [ '**' ]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
load-test:
name: Load Test
runs-on: ubuntu-latest
services:
alerta:
image: ghcr.io/alerta/alerta-api
env:
DEBUG: 1
DATABASE_URL: postgres://postgres:postgres@postgres:5432/alerta
ports:
- 8080:8080
options: >-
--health-cmd "curl --fail http://localhost:8080/_ || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 5
postgres:
image: postgres:13
env:
POSTGRES_DB: alerta
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Run test
run: >-
docker run ghcr.io/act10ns/hey
-z 2s
http://localhost:8080/_
# -m POST
# -T application/json
# -d '{"resource":"router01", "event":"node_down"}'
# http://localhost:8080/alert