blob: 66904da58b15a61d11409c4d376f59b8aaf79f3d [file] [log] [blame]
Michal Kobusac2e16d2019-03-18 11:19:42 +01001parameters:
2 prometheus:
3 elasticsearch_exporter:
4 queries:
5 compute_instance:
6 # Produces metrics:
7 # - compute_instance_event_doc_count{event="example"}
8 # - compute_instance_event_sum_other_doc_count
9 # - compute_instance_event_doc_count_error_upper_bound
10 # - compute_instance_event_host_doc_count{host="example01",event="example"}
11 # - compute_instance_event_host_sum_other_doc_count{event="example"}
12 # - compute_instance_event_host_doc_count_error_upper_bound{event="example"}
13 #
14 indices: '<notification-{now/d}>'
15 interval: 600
16 json: |
17 {
18 "size": 0,
19 "query": {
20 "match_all": {}
21 },
22 "aggs": {
23 "event": {
24 "terms": {
25 "field": "event_type.keyword"
26 },
27 "aggs": {
28 "host": {
29 "terms": {
30 "field": "Hostname.keyword"
31 }
32 }
33 }
34 }
35 }
36 }
37
38 compute_instance_create_start:
39 # Produces metrics:
40 # - compute_instance_create_start_host_doc_count{host="example01"}
41 # - compute_instance_create_start_host_event_sum_other_doc_count
42 # - compute_instance_create_start_host_doc_count_error_upper_bound
43 # - compute_instance_create_start_hits
44 # - compute_instance_create_start_took_milliseconds
45 #
46 indices: '<notification-{now/d}>'
47 interval: 60
48 json: |
49 {
50 "size": 0,
51 "query": {
52 "term": {
53 "event_type": "compute.instance.create.start"
54 }
55 },
56 "aggs": {
57 "host": {
58 "terms": {
59 "field": "Hostname.keyword"
60 }
61 }
62 }
63 }
64
65 compute_instance_create_end:
66 # Produces metrics:
67 # - compute_instance_create_end_host_doc_count{host="example01"}
68 # - compute_instance_create_end_host_event_sum_other_doc_count
69 # - compute_instance_create_end_host_doc_count_error_upper_bound
70 # - compute_instance_create_end_hits
71 # - compute_instance_create_end_took_milliseconds
72 #
73 indices: '<notification-{now/d}>'
74 interval: 60
75 json: |
76 {
77 "size": 0,
78 "query": {
79 "term": {
80 "event_type": "compute.instance.create.end"
81 }
82 },
83 "aggs": {
84 "host": {
85 "terms": {
86 "field": "Hostname.keyword"
87 }
88 }
89 }
90 }
91
92 compute_instance_create_error:
93 # Produces metrics:
94 # - compute_instance_create_error_host_doc_count{host="example01"}
95 # - compute_instance_create_error_host_event_sum_other_doc_count
96 # - compute_instance_create_error_host_doc_count_error_upper_bound
97 # - compute_instance_create_error_hits
98 # - compute_instance_create_error_took_milliseconds
99 #
100 indices: '<notification-{now/d}>'
101 interval: 60
102 json: |
103 {
104 "size": 0,
105 "query": {
106 "term": {
107 "event_type": "compute.instance.create.error"
108 }
109 },
110 "aggs": {
111 "host": {
112 "terms": {
113 "field": "Hostname.keyword"
114 }
115 }
116 }
117 }
118