Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bc1e643

Browse files
Add sample json of aggregations.upstream_time.avg_value monitor item
1 parent a0a82a3 commit bc1e643

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

‎tools/sample3.json‎

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /