Skip to content

Commit

Permalink
Fix 'writes' metric for ElasticSearchOutput (#21286) (#21288)
Browse files Browse the repository at this point in the history
* Fix 'writes' metric for ElasticSearchOutput

* add changelog

(cherry picked from commit ce32b08)

Co-authored-by: Othello Maurer <[email protected]>
  • Loading branch information
1 parent 2871c18 commit 2813ab5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/unreleased/pr-21286.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type = "fixed"
message = "Fix `org.graylog2.outputs.ElasticSearchOutput.writes` metric."

pulls = ["21286"]
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public void writeFiltered(List<FilteredMessage> filteredMessages) throws Excepti
.filter(message -> !message.destinations().get(FILTER_KEY).isEmpty())
.toList();

writes.mark(messages.size());
ignores.mark(filteredMessages.size() - messages.size());

writeMessageEntries(messages);
Expand Down

0 comments on commit 2813ab5

Please sign in to comment.