Skip to content

Commit a0a82a3

Browse files
committed
Add sample json of Invalid_HTTP_Method_Count monitor item
1 parent f28afa3 commit a0a82a3

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

tools/sample2.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"alarms": {
3+
"alert": ">=5",
4+
"warning": ">=1"
5+
},
6+
"enable": true,
7+
"elk_env": "staging",
8+
"formula": "${Invalid_HTTP_Method_Count}",
9+
"monitor_id": "Sample-Invalid_HTTP_Method_Count",
10+
"notify": {
11+
"slack": "https://${SLACK_WEB_HOOK_URL}"
12+
},
13+
"parameters": {
14+
"Invalid_HTTP_Method_Count": {
15+
"query": {
16+
"bool": {
17+
"must": [
18+
{
19+
"match": {
20+
"@service": "sample"
21+
}
22+
},
23+
{
24+
"match": {
25+
"@log_type": "sample_nginx_access"
26+
}
27+
},
28+
{
29+
"match": {
30+
"@env_phase": "staging"
31+
}
32+
},
33+
{
34+
"range": {
35+
"@timestamp": {
36+
"gt": "now-15m"
37+
}
38+
}
39+
},
40+
{
41+
"match": {
42+
"request_url": "/v1/sample.api"
43+
}
44+
},
45+
{
46+
"match": {
47+
"http_status_code": "405"
48+
}
49+
}
50+
]
51+
}
52+
}
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)