Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Added missing thread pools and extend thread pool stats
Browse files Browse the repository at this point in the history
Generic, Management, Warmer, Flush, Snapshot, Listener

Closes elastic#293
  • Loading branch information
bleskes committed Nov 12, 2014
1 parent 1195e4b commit 8483788
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
24 changes: 24 additions & 0 deletions agent/src/main/resources/marvel_index_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}
}
},
Expand Down
21 changes: 18 additions & 3 deletions kibana/dashboards/nodes_stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"
},
]
};
}
Expand Down Expand Up @@ -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": [
Expand Down

0 comments on commit 8483788

Please sign in to comment.