blob: ca1c3e1dc8e16ea3ce47f125bd57776c0bdfdd9e [file] [log] [blame]
parameters:
prometheus:
elasticsearch_exporter:
queries:
default:
interval: 600
json: {}
logs:
# Produces metrics:
# - logs_program_doc_count{program="example"}
# - logs_program_sum_other_doc_count
# - logs_program_doc_count_error_upper_bound
# - logs_program_host_doc_count{host="example01",program="example"}
# - logs_program_host_sum_other_doc_count{program="example"}
# - logs_program_host_doc_count_error_upper_bound{program="example"}
#
indices: '<log-{now/d}>'
interval: 600
json: |
{
"size": 0,
"query": {
"match_all": {}
},
"aggs": {
"program": {
"terms": {
"field": "programname.keyword",
"size": 10000
},
"aggs": {
"host": {
"terms": {
"field": "Hostname.keyword",
"size": 10000
}
}
}
}
}
}