Commit d0980085 authored by Ecklory's avatar Ecklory

Refactoring

parent cba8d321
......@@ -28,13 +28,13 @@
<name>Elasticsearch.Transport</name>
</application>
<application>
<name>ES.Index</name>
<name>Elasticsearch.Index</name>
</application>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
<application>
<name>ES.ThreadPool</name>
<name>Elasticsearch.ThreadPool</name>
</application>
<application>
<name>JVM</name>
......@@ -57,7 +57,7 @@
</applications>
<items>
<item>
<name>Elasticsearch cluster active primary shards</name>
<name>Cluster active primary shards</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -116,7 +116,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster active shards</name>
<name>Cluster active shards</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -175,7 +175,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster active shards percent</name>
<name>Cluster active shards percent</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -234,7 +234,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster name</name>
<name>Cluster name</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -293,7 +293,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster delayed unassigned shards</name>
<name>Cluster delayed unassigned shards</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -352,7 +352,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster initializing shards</name>
<name>Cluster initializing shards</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -411,7 +411,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster number of data nodes</name>
<name>Cluster number of data nodes</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -470,7 +470,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster number of in flight fetch</name>
<name>Cluster number of in flight fetch</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -529,7 +529,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster number of nodes</name>
<name>Cluster number of nodes</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -588,7 +588,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster number of pending tasks</name>
<name>Cluster number of pending tasks</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -647,7 +647,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster relocating shards</name>
<name>Cluster relocating shards</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -706,7 +706,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster health</name>
<name>Cluster health</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -765,7 +765,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster health int</name>
<name>Cluster health int</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -824,7 +824,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster task max waiting in queue</name>
<name>Cluster task max waiting in queue</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -883,7 +883,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster timeout</name>
<name>Cluster timeout</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -942,7 +942,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch cluster unassigned shards</name>
<name>Cluster unassigned shards</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1001,7 +1001,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch get indices stats</name>
<name>Get indices stats</name>
<type>0</type>
<snmp_community/>
<snmp_oid/>
......@@ -1032,7 +1032,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Index</name>
<name>Elasticsearch.Index</name>
</application>
</applications>
<valuemap/>
......@@ -1060,7 +1060,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch http current open</name>
<name>HTTP current open</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1119,7 +1119,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch http total opened</name>
<name>HTTP total opened</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1183,7 +1183,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices docs count</name>
<name>Node stats indices docs count</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1214,7 +1214,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1242,7 +1242,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices docs deleted</name>
<name>Node stats indices docs deleted</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1273,7 +1273,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1301,7 +1301,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices indexing latency</name>
<name>Node stats indices indexing latency</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1332,7 +1332,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1360,7 +1360,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices indexing</name>
<name>Node stats indices indexing</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1391,7 +1391,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1424,7 +1424,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices query cache hits</name>
<name>Node stats indices query cache hits</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1455,7 +1455,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1488,7 +1488,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices query cache memory size</name>
<name>Node stats indices query cache memory size</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1519,7 +1519,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1547,7 +1547,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices query cache misses</name>
<name>Node stats indices query cache misses</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1578,7 +1578,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1611,7 +1611,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices searching fetch latency</name>
<name>Node stats indices searching fetch latency</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1642,7 +1642,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1670,7 +1670,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices fetching</name>
<name>Node stats indices fetching</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1701,7 +1701,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1734,7 +1734,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices searching query latency</name>
<name>Node stats indices searching query latency</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1765,7 +1765,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1793,7 +1793,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices searching</name>
<name>Node stats indices searching</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1824,7 +1824,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1857,7 +1857,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices searching scroll latency</name>
<name>Node stats indices searching scroll latency</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1888,7 +1888,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1916,7 +1916,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices scrolling</name>
<name>Node stats indices scrolling</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -1947,7 +1947,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -1980,7 +1980,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices searching suggest latency</name>
<name>Node stats indices searching suggest latency</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2011,7 +2011,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -2039,7 +2039,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices get missing</name>
<name>Node stats indices get missing</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2070,7 +2070,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -2098,7 +2098,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices get missing time</name>
<name>Node stats indices get missing time</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2129,7 +2129,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -2157,7 +2157,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices store size</name>
<name>Node stats indices store size</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2188,7 +2188,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -2216,7 +2216,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats indices store throttle time</name>
<name>Node stats indices store throttle time</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2247,7 +2247,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.Indices</name>
<name>Elasticsearch.Indices</name>
</application>
</applications>
<valuemap/>
......@@ -2275,7 +2275,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm classes current loaded count</name>
<name>Node stats jvm classes current loaded count</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2334,7 +2334,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm classes total loaded count</name>
<name>Node stats jvm classes total loaded count</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2393,7 +2393,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm classes total unloaded count</name>
<name>Node stats jvm classes total unloaded count</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2452,7 +2452,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm memory heap committed in bytes</name>
<name>Node stats jvm memory heap committed in bytes</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2511,7 +2511,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm memory heap max in bytes</name>
<name>Node stats jvm memory heap max in bytes</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2570,7 +2570,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm memory heap used in bytes</name>
<name>Node stats jvm memory heap used in bytes</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2629,7 +2629,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm memory heap used percent</name>
<name>Node stats jvm memory heap used percent</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2688,7 +2688,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm memory non heap committed in bytes</name>
<name>Node stats jvm memory non heap committed in bytes</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2747,7 +2747,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm memory non heap used in bytes</name>
<name>Node stats jvm memory non heap used in bytes</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2806,7 +2806,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm threads count</name>
<name>Node stats jvm threads count</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2865,7 +2865,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm threads peak count</name>
<name>Node stats jvm threads peak count</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2924,7 +2924,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm timestamp</name>
<name>Node stats jvm timestamp</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -2988,7 +2988,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch node stats jvm uptime</name>
<name>Node stats jvm uptime</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -3052,7 +3052,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch transport RX count</name>
<name>Transport RX count</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -3116,7 +3116,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch transport RX bytes</name>
<name>Transport RX bytes</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -3180,7 +3180,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch transport server open</name>
<name>Transport server open</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -3239,7 +3239,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch transport TX count</name>
<name>Transport TX count</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -3303,7 +3303,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch transport TX bytes</name>
<name>Transport TX bytes</name>
<type>2</type>
<snmp_community/>
<snmp_oid/>
......@@ -3367,7 +3367,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch get stats</name>
<name>Get stats</name>
<type>0</type>
<snmp_community/>
<snmp_oid/>
......@@ -3426,7 +3426,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch port listen</name>
<name>Port listen</name>
<type>3</type>
<snmp_community/>
<snmp_oid/>
......@@ -3485,7 +3485,7 @@
<master_item/>
</item>
<item>
<name>Elasticsearch process num</name>
<name>Process num</name>
<type>0</type>
<snmp_community/>
<snmp_oid/>
......@@ -4213,7 +4213,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.ThreadPool</name>
<name>Elasticsearch.ThreadPool</name>
</application>
</applications>
<valuemap/>
......@@ -4273,7 +4273,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.ThreadPool</name>
<name>Elasticsearch.ThreadPool</name>
</application>
</applications>
<valuemap/>
......@@ -4338,7 +4338,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.ThreadPool</name>
<name>Elasticsearch.ThreadPool</name>
</application>
</applications>
<valuemap/>
......@@ -4403,7 +4403,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.ThreadPool</name>
<name>Elasticsearch.ThreadPool</name>
</application>
</applications>
<valuemap/>
......@@ -4463,7 +4463,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.ThreadPool</name>
<name>Elasticsearch.ThreadPool</name>
</application>
</applications>
<valuemap/>
......@@ -4528,7 +4528,7 @@
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ES.ThreadPool</name>
<name>Elasticsearch.ThreadPool</name>
</application>
</applications>
<valuemap/>
......@@ -4859,7 +4859,7 @@
</item_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{Template App Elasticsearch:grpavg[&quot;{#GROUPNAME}&quot;, &quot;elasticsearch.cluster_health.active_shards_percent&quot;,last,0].last()}&lt;100</expression>
<expression>{Template App Elasticsearch:grpavg[&quot;{#GROUPNAME}&quot;, &quot;elasticsearch.cluster_health.active_shards_percent&quot;,last,0].last()} &lt; 100</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Cluster active shards percent {ITEM.LASTVALUE1}</name>
......@@ -4875,7 +4875,7 @@
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{Template App Elasticsearch:grpavg[&quot;{#GROUPNAME}&quot;, &quot;elasticsearch.cluster_health.delayed_unassigned_shards&quot;,last,0].last()}&gt;0</expression>
<expression>{Template App Elasticsearch:grpavg[&quot;{#GROUPNAME}&quot;, &quot;elasticsearch.cluster_health.delayed_unassigned_shards&quot;,last,0].last()} &gt; 0</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Cluster delayed unassigned shards {ITEM.LASTVALUE1}</name>
......@@ -4891,7 +4891,7 @@
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{Template App Elasticsearch:grpmax[&quot;{#GROUPNAME}&quot;, &quot;elasticsearch.cluster_health.status_int&quot;,last,0].last()}=2</expression>
<expression>{Template App Elasticsearch:grpmax[&quot;{#GROUPNAME}&quot;, &quot;elasticsearch.cluster_health.status_int&quot;,last,0].last()} = 2</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Cluster health red</name>
......@@ -4907,7 +4907,7 @@
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{Template App Elasticsearch:grpmax[&quot;{#GROUPNAME}&quot;, &quot;elasticsearch.cluster_health.status_int&quot;,last,0].last()}=1</expression>
<expression>{Template App Elasticsearch:grpmax[&quot;{#GROUPNAME}&quot;, &quot;elasticsearch.cluster_health.status_int&quot;,last,0].last()} = 1</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Cluster health yellow</name>
......@@ -4923,7 +4923,7 @@
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{Template App Elasticsearch:grpavg[&quot;{#GROUPNAME}&quot;, &quot;elasticsearch.cluster_health.relocating_shards&quot;,last,0].last()}&gt;0</expression>
<expression>{Template App Elasticsearch:grpavg[&quot;{#GROUPNAME}&quot;, &quot;elasticsearch.cluster_health.relocating_shards&quot;,last,0].last()} &gt; 0</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Cluster relocating shards {ITEM.LASTVALUE1}</name>
......@@ -4939,7 +4939,7 @@
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{Template App Elasticsearch:grpavg[&quot;{#GROUPNAME}&quot;, &quot;elasticsearch.cluster_health.unassigned_shards&quot;,last,0].last()}&gt;0</expression>
<expression>{Template App Elasticsearch:grpavg[&quot;{#GROUPNAME}&quot;, &quot;elasticsearch.cluster_health.unassigned_shards&quot;,last,0].last()} &gt; 0</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>