-
-
Save dcvtruong/98d294c190e9f32fb62f8fdbf9176436 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_index": ".watcher-history-10-2019.12.17", | |
"_type": "_doc", | |
"_id": "0ace0d57-4f55-40ae-a944-7ca73a8852c9_a150b99a-7ae0-46f1-b1f6-eadacc7002fa-2019-12-17T16:29:00.23994Z", | |
"_version": 1, | |
"_score": null, | |
"_source": { | |
"watch_id": "0ace0d57-4f55-40ae-a944-7ca73a8852c9", | |
"node": "q77MD5qETpqU2Tw58nxcDA", | |
"state": "execution_not_needed", | |
"status": { | |
"state": { | |
"active": true, | |
"timestamp": "2019-12-17T16:18:59.819Z" | |
}, | |
"last_checked": "2019-12-17T16:29:00.239Z", | |
"actions": { | |
"dt_devops_log": { | |
"ack": { | |
"timestamp": "2019-12-17T16:18:59.819Z", | |
"state": "awaits_successful_execution" | |
} | |
} | |
}, | |
"execution_state": "execution_not_needed", | |
"version": -1 | |
}, | |
"trigger_event": { | |
"type": "schedule", | |
"triggered_time": "2019-12-17T16:29:00.239Z", | |
"schedule": { | |
"scheduled_time": "2019-12-17T16:28:59.820Z" | |
} | |
}, | |
"input": { | |
"search": { | |
"request": { | |
"search_type": "query_then_fetch", | |
"indices": [ | |
".monitoring-es-7*" | |
], | |
"types": [ | |
"node_stats" | |
], | |
"rest_total_hits_as_int": true, | |
"body": { | |
"size": 0, | |
"query": { | |
"bool": { | |
"filter": [ | |
{ | |
"range": { | |
"timestamp": { | |
"gte": "now-2m", | |
"lte": "now" | |
} | |
} | |
} | |
] | |
} | |
}, | |
"aggs": { | |
"minutes": { | |
"date_histogram": { | |
"field": "timestamp", | |
"calendar_interval": "1h" | |
}, | |
"aggs": { | |
"nodes": { | |
"terms": { | |
"field": "source_node.name" | |
}, | |
"aggs": { | |
"memory": { | |
"max": { | |
"field": "node_stats.jvm.mem.heap_used_percent" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"condition": { | |
"script": { | |
"source": "return ctx.payload.aggregations.minutes.buckets.stream().anyMatch(b -> b.nodes.buckets.stream().anyMatch(x -> x.memory.value > 5))", | |
"lang": "painless" | |
} | |
}, | |
"metadata": { | |
"name": "ES-JVM-Heap-DEBUG", | |
"xpack": { | |
"type": "json" | |
} | |
}, | |
"result": { | |
"execution_time": "2019-12-17T16:29:00.239Z", | |
"execution_duration": 3, | |
"input": { | |
"type": "search", | |
"status": "success", | |
"payload": { | |
"_shards": { | |
"total": 7, | |
"failed": 0, | |
"successful": 7, | |
"skipped": 0 | |
}, | |
"hits": { | |
"hits": [], | |
"total": 0, | |
"max_score": null | |
}, | |
"took": 3, | |
"timed_out": false, | |
"aggregations": { | |
"minutes": { | |
"buckets": [] | |
} | |
} | |
}, | |
"search": { | |
"request": { | |
"search_type": "query_then_fetch", | |
"indices": [ | |
".monitoring-es-7*" | |
], | |
"types": [ | |
"node_stats" | |
], | |
"rest_total_hits_as_int": true, | |
"body": { | |
"size": 0, | |
"query": { | |
"bool": { | |
"filter": [ | |
{ | |
"range": { | |
"timestamp": { | |
"gte": "now-2m", | |
"lte": "now" | |
} | |
} | |
} | |
] | |
} | |
}, | |
"aggs": { | |
"minutes": { | |
"date_histogram": { | |
"field": "timestamp", | |
"calendar_interval": "1h" | |
}, | |
"aggs": { | |
"nodes": { | |
"terms": { | |
"field": "source_node.name" | |
}, | |
"aggs": { | |
"memory": { | |
"max": { | |
"field": "node_stats.jvm.mem.heap_used_percent" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"condition": { | |
"type": "script", | |
"status": "success", | |
"met": false | |
}, | |
"actions": [] | |
}, | |
"messages": [] | |
}, | |
"fields": { | |
"result.execution_time": [ | |
"2019-12-17T16:29:00.239Z" | |
], | |
"trigger_event.schedule.scheduled_time": [ | |
"2019-12-17T16:28:59.820Z" | |
], | |
"trigger_event.triggered_time": [ | |
"2019-12-17T16:29:00.239Z" | |
] | |
}, | |
"highlight": { | |
"watch_id": [ | |
"@kibana-highlighted-field@0ace0d57-4f55-40ae-a944-7ca73a8852c9@/kibana-highlighted-field@" | |
] | |
}, | |
"sort": [ | |
1576600140239 | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment