From 229b11edc8350ff899d64cd9ee29ad20682e7f58 Mon Sep 17 00:00:00 2001 From: Bernd Ahlers Date: Fri, 9 Nov 2018 03:45:17 -0600 Subject: [PATCH] Fix index stats collection (#5226) Use the correct fields for indexing and merges. --- .../org/graylog2/indexer/indices/stats/IndexStatistics.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/graylog2-server/src/main/java/org/graylog2/indexer/indices/stats/IndexStatistics.java b/graylog2-server/src/main/java/org/graylog2/indexer/indices/stats/IndexStatistics.java index f86706812815..4c1377e1fc9a 100644 --- a/graylog2-server/src/main/java/org/graylog2/indexer/indices/stats/IndexStatistics.java +++ b/graylog2-server/src/main/java/org/graylog2/indexer/indices/stats/IndexStatistics.java @@ -63,10 +63,10 @@ private static IndexStats buildIndexStats(final JsonNode stats) { final long getTotalTimeSeconds = get.path("total_time_in_millis").asLong() / 1000L; final JsonNode indexing = stats.path("indexing"); - final long indexingTotal = indexing.path("total").asLong(); - final long indexingTotalTimeSeconds = indexing.path("total_time_in_millis").asLong() / 1000L; + final long indexingTotal = indexing.path("index_total").asLong(); + final long indexingTotalTimeSeconds = indexing.path("index_time_in_millis").asLong() / 1000L; - final JsonNode merge = stats.path("merge"); + final JsonNode merge = stats.path("merges"); final long mergeTotal = merge.path("total").asLong(); final long mergeTotalTimeSeconds = merge.path("total_time_in_millis").asLong() / 1000L;