blob: ca1c3e1dc8e16ea3ce47f125bd57776c0bdfdd9e [file] [log] [blame]
Michal Kobusc26cfc12019-03-18 11:19:42 +01001parameters:
2 prometheus:
3 elasticsearch_exporter:
4 queries:
5 default:
6 interval: 600
7 json: {}
8
9 logs:
10 # Produces metrics:
11 # - logs_program_doc_count{program="example"}
12 # - logs_program_sum_other_doc_count
13 # - logs_program_doc_count_error_upper_bound
14 # - logs_program_host_doc_count{host="example01",program="example"}
15 # - logs_program_host_sum_other_doc_count{program="example"}
16 # - logs_program_host_doc_count_error_upper_bound{program="example"}
17 #
18 indices: '<log-{now/d}>'
19 interval: 600
20 json: |
21 {
22 "size": 0,
23 "query": {
24 "match_all": {}
25 },
26 "aggs": {
27 "program": {
28 "terms": {
Ksawery Dziekoński1c18fa62020-06-23 15:45:59 +020029 "field": "programname.keyword",
30 "size": 10000
Michal Kobusc26cfc12019-03-18 11:19:42 +010031 },
32 "aggs": {
33 "host": {
34 "terms": {
Ksawery Dziekoński1c18fa62020-06-23 15:45:59 +020035 "field": "Hostname.keyword",
36 "size": 10000
Michal Kobusc26cfc12019-03-18 11:19:42 +010037 }
38 }
39 }
40 }
41 }
42 }