Skip to content

Commit

Permalink
Filter indices stats for translog
Browse files Browse the repository at this point in the history
Added the missing call in the RestAction, closes #8262

Conflicts:
	src/main/java/org/elasticsearch/rest/action/admin/indices/stats/RestIndicesStatsAction.java
  • Loading branch information
fhopf authored and s1monw committed Mar 20, 2015
1 parent 4afa41d commit 15838ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/reference/indices/stats.asciidoc
Expand Up @@ -47,6 +47,7 @@ specified as well in the URI. Those stats can be any of:
`refresh`:: Refresh statistics.
`suggest`:: Suggest statistics.
`warmer`:: Warmer statistics.
`translog`:: Translog statistics.

Some statistics allow per field granularity which accepts a list
comma-separated list of included fields. By default all fields are included:
Expand Down
Expand Up @@ -82,6 +82,7 @@ public void handleRequest(final RestRequest request, final RestChannel channel,
indicesStatsRequest.suggest(metrics.contains("suggest"));
indicesStatsRequest.queryCache(metrics.contains("query_cache"));
indicesStatsRequest.recovery(metrics.contains("recovery"));
indicesStatsRequest.translog(metrics.contains("translog"));
}

if (request.hasParam("groups")) {
Expand Down

0 comments on commit 15838ea

Please sign in to comment.