Michal Kobus | c26cfc1 | 2019-03-18 11:19:42 +0100 | [diff] [blame^] | 1 | parameters: |
| 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": { |
| 29 | "field": "programname.keyword" |
| 30 | }, |
| 31 | "aggs": { |
| 32 | "host": { |
| 33 | "terms": { |
| 34 | "field": "Hostname.keyword" |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | } |