forked from xco-sk/eck-custom-resources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkibana.eck_v1alpha1_dataview.yaml
51 lines (51 loc) · 1.32 KB
/
kibana.eck_v1alpha1_dataview.yaml
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
apiVersion: kibana.eck.github.com/v1alpha1
kind: DataView
metadata:
name: dataview-sample
spec:
targetInstance:
name: kibana-quickstart
space: space-sample
dependencies:
- type: lens
name: lens-sample
body: |
{
"title": "sample-index-*",
"type": "rollup",
"typeMeta": {
"params": {
"rollup_index": "rollup_logstash"
},
"aggs": {
"terms": {
"geo.dest": { "agg": "terms" },
"extension.keyword": { "agg": "terms" },
"geo.src": { "agg": "terms" },
"machine.os.keyword": { "agg": "terms" }
},
"date_histogram": {
"@timestamp": {
"agg": "date_histogram",
"fixed_interval": "20m",
"delay": "10m",
"time_zone": "UTC"
}
},
"avg": {
"memory": { "agg": "avg" },
"bytes": { "agg": "avg" }
},
"max": { "memory": { "agg": "max" } },
"min": { "memory": { "agg": "min" } },
"sum": { "memory": { "agg": "sum" } },
"value_count": { "memory": { "agg": "value_count" } },
"histogram": {
"machine.ram": {
"agg": "histogram",
"interval": 5
}
}
}
}
}