Created
September 11, 2018 12:03
-
-
Save hiteshbal91/4093d3c734a5b5cc676c03e59fc765c1 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
{ | |
"watch_id": "_inlined_", | |
"node": "--------------", | |
"state": "execution_not_needed", | |
"status": { | |
"state": { | |
"active": true, | |
"timestamp": "2018-09-11T12:01:56.774Z" | |
}, | |
"last_checked": "2018-09-11T12:01:56.774Z", | |
"actions": { | |
"send_email": { | |
"ack": { | |
"timestamp": "2018-09-11T12:01:56.774Z", | |
"state": "awaits_successful_execution" | |
} | |
} | |
}, | |
"execution_state": "execution_not_needed", | |
"version": -1 | |
}, | |
"trigger_event": { | |
"type": "manual", | |
"triggered_time": "2018-09-11T12:01:56.774Z", | |
"manual": { | |
"schedule": { | |
"scheduled_time": "2018-09-11T12:01:56.774Z" | |
} | |
} | |
}, | |
"input": { | |
"search": { | |
"request": { | |
"search_type": "query_then_fetch", | |
"indices": [ | |
".monitoring-es*" | |
], | |
"types": [ | |
"doc" | |
], | |
"body": { | |
"query": { | |
"match": { | |
"type": "cluster_stats" | |
} | |
}, | |
"sort": [ | |
{ | |
"timestamp": { | |
"order": "desc" | |
} | |
} | |
], | |
"_source": [ | |
"cluster_stats" | |
], | |
"size": 1 | |
} | |
} | |
} | |
}, | |
"condition": { | |
"compare": { | |
"ctx.payload.hits.hits.0._source.cluster_stats.indices.store.size_in_bytes": { | |
"gt": 10000000000 | |
} | |
} | |
}, | |
"metadata": { | |
"name": "disk_usage_watcher", | |
"xpack": { | |
"type": "json" | |
} | |
}, | |
"result": { | |
"execution_time": "2018-09-11T12:01:56.774Z", | |
"execution_duration": 753, | |
"input": { | |
"type": "search", | |
"status": "success", | |
"payload": { | |
"_shards": { | |
"total": 7, | |
"failed": 0, | |
"successful": 7, | |
"skipped": 0 | |
}, | |
"hits": { | |
"hits": [ | |
{ | |
"_index": ".monitoring-es-6-2018.09.11", | |
"_type": "doc", | |
"_source": { | |
"cluster_stats": { | |
"indices": { | |
"shards": { | |
"replication": 0.3088235294117647, | |
"primaries": 476, | |
"total": 623, | |
"index": { | |
"replication": { | |
"min": 0, | |
"avg": 0.18564356435643564, | |
"max": 1 | |
}, | |
"shards": { | |
"min": 1, | |
"avg": 1.5420792079207921, | |
"max": 4 | |
}, | |
"primaries": { | |
"min": 1, | |
"avg": 1.1782178217821782, | |
"max": 2 | |
} | |
} | |
}, | |
"completion": { | |
"size_in_bytes": 0 | |
}, | |
"query_cache": { | |
"miss_count": 170682, | |
"memory_size_in_bytes": 3100925, | |
"cache_size": 274, | |
"total_count": 190112, | |
"evictions": 6186, | |
"hit_count": 19430, | |
"cache_count": 6460 | |
}, | |
"docs": { | |
"deleted": 3117237, | |
"count": 13665057 | |
}, | |
"fielddata": { | |
"memory_size_in_bytes": 912, | |
"evictions": 0 | |
}, | |
"count": 404, | |
"store": { | |
"size_in_bytes": 5295242340 | |
}, | |
"segments": { | |
"version_map_memory_in_bytes": 0, | |
"norms_memory_in_bytes": 268928, | |
"file_sizes": {}, | |
"max_unsafe_auto_id_timestamp": -1, | |
"count": 913, | |
"fixed_bit_set_memory_in_bytes": 3342856, | |
"term_vectors_memory_in_bytes": 0, | |
"points_memory_in_bytes": 216915, | |
"index_writer_memory_in_bytes": 0, | |
"memory_in_bytes": 16712041, | |
"terms_memory_in_bytes": 14488562, | |
"doc_values_memory_in_bytes": 540884, | |
"stored_fields_memory_in_bytes": 1196752 | |
} | |
}, | |
"nodes": { | |
"jvm": { | |
"max_uptime_in_millis": 2515034283, | |
"mem": { | |
"heap_max_in_bytes": 2739011584, | |
"heap_used_in_bytes": 1498541440 | |
}, | |
"versions": [ | |
{ | |
"vm_version": "25.144-b01", | |
"count": 3, | |
"vm_vendor": "Oracle Corporation", | |
"version": "1.8.0_144", | |
"vm_name": "Java HotSpot(TM) 64-Bit Server VM" | |
} | |
], | |
"threads": 374 | |
}, | |
"process": { | |
"open_file_descriptors": { | |
"min": 341, | |
"avg": 1104, | |
"max": 1487 | |
}, | |
"cpu": { | |
"percent": 0 | |
} | |
}, | |
"os": { | |
"available_processors": 68, | |
"names": [ | |
{ | |
"name": "Linux", | |
"count": 3 | |
} | |
], | |
"mem": { | |
"used_in_bytes": 528487321600, | |
"free_percent": 4, | |
"total_in_bytes": 547762073600, | |
"free_in_bytes": 19274752000, | |
"used_percent": 96 | |
}, | |
"allocated_processors": 6 | |
}, | |
"network_types": { | |
"http_types": {}, | |
"transport_types": {} | |
}, | |
"versions": [ | |
"6.3.1" | |
], | |
"plugins": [ | |
{ | |
"classname": "org.elasticsearch.discovery.file.FileBasedDiscoveryPlugin", | |
"elasticsearch_version": "6.3.1", | |
"extended_plugins": [], | |
"name": "discovery-file", | |
"java_version": "1.8", | |
"description": "Discovery file plugin enables unicast discovery from hosts stored in a file.", | |
"version": "6.3.1", | |
"has_native_controller": false | |
}, | |
{ | |
"classname": "org.elasticsearch.repositories.s3.S3RepositoryPlugin", | |
"elasticsearch_version": "6.3.1", | |
"extended_plugins": [], | |
"name": "repository-s3", | |
"java_version": "1.8", | |
"description": "The S3 repository plugin adds S3 repositories", | |
"version": "6.3.1", | |
"has_native_controller": false | |
}, | |
{ | |
"classname": "org.elasticsearch.plugin.found.FoundPlugin", | |
"elasticsearch_version": "6.3.1", | |
"extended_plugins": [], | |
"name": "found-elasticsearch", | |
"java_version": "1.8", | |
"description": "Elasticsearch plugin for Found", | |
"version": "6.3.1", | |
"has_native_controller": false | |
} | |
], | |
"count": { | |
"total": 3, | |
"data": 2, | |
"coordinating_only": 0, | |
"master": 3, | |
"ingest": 2 | |
}, | |
"fs": { | |
"total_in_bytes": 139586437120, | |
"free_in_bytes": 134214873088, | |
"available_in_bytes": 134214873088 | |
} | |
}, | |
"timestamp": 1536667312740, | |
"status": "green" | |
} | |
}, | |
"_id": "wzeCyGUB5MPXOQN3ZBnr", | |
"sort": [ | |
1536667312747 | |
], | |
"_score": null | |
} | |
], | |
"total": 56163, | |
"max_score": null | |
}, | |
"took": 752, | |
"timed_out": false | |
}, | |
"search": { | |
"request": { | |
"search_type": "query_then_fetch", | |
"indices": [ | |
".monitoring-es*" | |
], | |
"types": [ | |
"doc" | |
], | |
"body": { | |
"query": { | |
"match": { | |
"type": "cluster_stats" | |
} | |
}, | |
"sort": [ | |
{ | |
"timestamp": { | |
"order": "desc" | |
} | |
} | |
], | |
"_source": [ | |
"cluster_stats" | |
], | |
"size": 1 | |
} | |
} | |
} | |
}, | |
"condition": { | |
"type": "compare", | |
"status": "success", | |
"met": false, | |
"compare": { | |
"resolved_values": { | |
"ctx.payload.hits.hits.0._source.cluster_stats.indices.store.size_in_bytes": 5295242340 | |
} | |
} | |
}, | |
"actions": [] | |
}, | |
"messages": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment