Skip to content

Commit 024a5ac

Browse files
authored
Merge pull request #1131 from opencrvs/fix-metricbeat
fix: Revert data collection storage from 30d to 2d
2 parents 5822b84 + 03a9b3c commit 024a5ac

File tree

1 file changed

+15
-40
lines changed

1 file changed

+15
-40
lines changed

infrastructure/monitoring/metricbeat/metricbeat-rollover-policy.json

Lines changed: 15 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,23 @@
11
{
22
"policy": {
3-
"phases": {
4-
"hot": {
5-
"actions": {
6-
"rollover": {
7-
"max_size": "2GB",
8-
"max_age": "1d"
9-
},
10-
"set_priority": {
11-
"priority": 100
12-
}
3+
"phases": {
4+
"hot": {
5+
"min_age": "0ms",
6+
"actions": {
7+
"rollover": {
8+
"max_age": "3d",
9+
"max_size": "200mb"
1310
}
14-
},
15-
"warm": {
16-
"min_age": "3d",
17-
"actions": {
18-
"allocate": {
19-
"number_of_replicas": 0
20-
},
21-
"forcemerge": {
22-
"max_num_segments": 1
23-
},
24-
"set_priority": {
25-
"priority": 50
26-
}
27-
}
28-
},
29-
"cold": {
30-
"min_age": "7d",
31-
"actions": {
32-
"allocate": {
33-
"number_of_replicas": 0
34-
},
35-
"set_priority": {
36-
"priority": 0
37-
}
38-
}
39-
},
40-
"delete": {
41-
"min_age": "30d",
42-
"actions": {
43-
"delete": {}
11+
}
12+
},
13+
"delete": {
14+
"min_age": "2d",
15+
"actions": {
16+
"delete": {
17+
"delete_searchable_snapshot": true
4418
}
4519
}
20+
}
4621
},
4722
"_meta": {
4823
"managed": true,

0 commit comments

Comments
 (0)