Skip to content

Commit 87438f9

Browse files
committed
metricbeat beat stats metricset fetch failure_store metric
1 parent af631bd commit 87438f9

File tree

7 files changed

+163
-99
lines changed

7 files changed

+163
-99
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# REQUIRED
2+
# Kind can be one of:
3+
# - breaking-change: a change to previously-documented behavior
4+
# - deprecation: functionality that is being removed in a later release
5+
# - bug-fix: fixes a problem in a previous version
6+
# - enhancement: extends functionality but does not break or fix existing behavior
7+
# - feature: new functionality
8+
# - known-issue: problems that we are aware of in a given version
9+
# - security: impacts on the security of a product or a user’s deployment.
10+
# - upgrade: important information for someone upgrading from a prior version
11+
# - other: does not fit into any of the other categories
12+
kind: feature
13+
14+
# REQUIRED for all kinds
15+
# Change summary; a 80ish characters long description of the change.
16+
summary: Add failure_store metric to the stats metricset in the beat module.
17+
18+
# REQUIRED for breaking-change, deprecation, known-issue
19+
# Long description; in case the summary is not enough to describe the change
20+
# this field accommodate a description without length limits.
21+
# description:
22+
23+
# REQUIRED for breaking-change, deprecation, known-issue
24+
# impact:
25+
26+
# REQUIRED for breaking-change, deprecation, known-issue
27+
# action:
28+
29+
# REQUIRED for all kinds
30+
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
31+
component: metricbeat
32+
33+
# AUTOMATED
34+
# OPTIONAL to manually add other PR URLs
35+
# PR URL: A link the PR that added the changeset.
36+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
37+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
38+
# Please provide it if you are adding a fragment for a different PR.
39+
pr: https://github.com/elastic/beats/pull/49452
40+
41+
# AUTOMATED
42+
# OPTIONAL to manually add other issue URLs
43+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
44+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
45+
# issue: https://github.com/owner/repo/1234

docs/reference/metricbeat/exported-fields-beat.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,12 @@ Beat module
10741074
alias to: beat.stats.libbeat.output.events.failed
10751075

10761076

1077+
**`beats_stats.metrics.libbeat.output.events.failure_store`**
1078+
: type: alias
1079+
1080+
alias to: beat.stats.libbeat.output.events.failure_store
1081+
1082+
10771083
**`beats_stats.metrics.libbeat.output.events.toomany`**
10781084
: type: alias
10791085

@@ -2522,6 +2528,12 @@ Event counters
25222528
type: long
25232529

25242530

2531+
**`beat.stats.libbeat.output.events.failure_store`**
2532+
: Number of events written to the failure store
2533+
2534+
type: long
2535+
2536+
25252537
**`beat.stats.libbeat.output.events.toomany`**
25262538
: Number of too many events
25272539

metricbeat/module/beat/_meta/fields.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@
717717
- name: failed
718718
type: alias
719719
path: beat.stats.libbeat.output.events.failed
720+
- name: failure_store
721+
type: alias
722+
path: beat.stats.libbeat.output.events.failure_store
720723
- name: toomany
721724
type: alias
722725
path: beat.stats.libbeat.output.events.toomany

metricbeat/module/beat/fields.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

metricbeat/module/beat/stats/_meta/fields.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,10 @@
723723
type: long
724724
description: >
725725
Number of events failed
726+
- name: failure_store
727+
type: long
728+
description: >
729+
Number of events written to the failure store
726730
- name: toomany
727731
type: long
728732
description: >

metricbeat/module/beat/stats/_meta/test/stats.800.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"dropped": 0,
5656
"duplicates": 0,
5757
"failed": 0,
58+
"failure_store": 0,
5859
"toomany": 0,
5960
"total": 0
6061
},

0 commit comments

Comments
 (0)