Added missing thread pools and extend thread pool stats

Generic, Management, Warmer, Flush, Snapshot, Listener

Closes #293
This commit is contained in:
Boaz Leskes 2014-11-12 16:07:24 +01:00
parent 1195e4b332
commit 8483788f14
2 changed files with 42 additions and 3 deletions

View file

@ -184,6 +184,30 @@
}
}
}
},
//thread_pool.listener.completed
"thread_pool": {
"properties": {
"listener": {
"properties": {
"threads": {
"type": "long"
},
"rejected": {
"type": "long"
},
"completed": {
"type": "long"
},
"queue": {
"type": "long"
},
"largest": {
"type": "long"
}
}
}
}
}
}
},

View file

@ -184,8 +184,9 @@ function clusterViewFilter (query) {
}
function threadPoolRow(name) {
var field_prefix = "thread_pool." + name.toLowerCase() + ".",
function threadPoolRow(name, field_name) {
field_name = field_name || name.toLowerCase();
var field_prefix = "thread_pool." + field_name + ".",
name_prefix = name + " Thread Pool ";
return {
"title": "Thread Pools - " + name,
@ -205,7 +206,15 @@ function threadPoolRow(name) {
"mode": "min",
"scaleSeconds": true,
"y_format": "short"
}
},
{
"value_field": field_prefix + "queue",
"title": name_prefix + "Queue Size"
},
{
"value_field": field_prefix + "largest",
"title": name_prefix + "Largest Thread Count"
},
]
};
}
@ -679,10 +688,16 @@ var rows = [
threadPoolRow("Index"),
threadPoolRow("Bulk"),
threadPoolRow("Get"),
threadPoolRow("Generic"),
threadPoolRow("Management"),
threadPoolRow("Suggest"),
threadPoolRow("Percolate"),
threadPoolRow("Warmer"),
threadPoolRow("Flush"),
threadPoolRow("Refresh"),
threadPoolRow("Optimize"),
threadPoolRow("Snapshot"),
threadPoolRow("Listener"),
{
"title": "Disk",
"panels": [