Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.17](backport #42514) Write latency statistics go under a histogram key #42528

Merged
merged 3 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 134 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -10182,16 +10182,113 @@ type: long

--


*`beat.stats.libbeat.pipeline.queue.acked`*::
+
--
Number of acknowledged events


type: long

--

*`beat.stats.libbeat.pipeline.queue.added.bytes`*::
+
--
Number of bytes added to the queue


type: long

--

*`beat.stats.libbeat.pipeline.queue.added.events`*::
+
--
Number of events added to the queue


type: long

--

*`beat.stats.libbeat.pipeline.queue.consumed.bytes`*::
+
--
Number of bytes consumed from the queue


type: long

--

*`beat.stats.libbeat.pipeline.queue.consumed.events`*::
+
--
Number of events consumed from the queue


type: long

--

*`beat.stats.libbeat.pipeline.queue.filled.bytes`*::
+
--
Number of bytes filled in the queue


type: long

--

*`beat.stats.libbeat.pipeline.queue.filled.events`*::
+
--
Number of events filled in the queue


type: long

--

*`beat.stats.libbeat.pipeline.queue.filled.pct`*::
+
--
Percentage of the queue filled


type: float

--

*`beat.stats.libbeat.pipeline.queue.max_events`*::
+
--
Maximum number of events allowed in the queue


type: long

--

*`beat.stats.libbeat.pipeline.queue.removed.bytes`*::
+
--
Number of bytes removed from the queue


type: long

--

*`beat.stats.libbeat.pipeline.queue.removed.events`*::
+
--
Number of events removed from the queue


type: long

--
Expand Down Expand Up @@ -10435,6 +10532,43 @@ type: long



*`beat.stats.libbeat.output.write.latency.histogram.count`*::
+
--
type: long

--

*`beat.stats.libbeat.output.write.latency.histogram.max`*::
+
--
type: float

--

*`beat.stats.libbeat.output.write.latency.histogram.median`*::
+
--
type: long

--

*`beat.stats.libbeat.output.write.latency.histogram.p95`*::
+
--
type: float

--

*`beat.stats.libbeat.output.write.latency.histogram.p99`*::
+
--
type: float

--




*`beat.stats.output.elasticsearch.bulk_requests.available`*::
+
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/beat/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 74 additions & 4 deletions metricbeat/module/beat/stats/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,64 @@
fields:
- name: clients
type: long
- name: queue.acked
type: long
- name: queue.max_events
type: long
- name: queue
type: group
fields:
- name: acked
type: long
metric_type: counter
description: >
Number of acknowledged events
- name: added.bytes
type: long
metric_type: counter
description: >
Number of bytes added to the queue
- name: added.events
type: long
metric_type: counter
description: >
Number of events added to the queue
- name: consumed.bytes
type: long
metric_type: counter
description: >
Number of bytes consumed from the queue
- name: consumed.events
type: long
metric_type: counter
description: >
Number of events consumed from the queue
- name: filled.bytes
type: long
metric_type: gauge
description: >
Number of bytes filled in the queue
- name: filled.events
type: long
metric_type: gauge
description: >
Number of events filled in the queue
- name: filled.pct
type: float
metric_type: gauge
description: >
Percentage of the queue filled
- name: max_events
type: long
metric_type: gauge
description: >
Maximum number of events allowed in the queue
- name: removed.bytes
type: long
metric_type: counter
description: >
Number of bytes removed from the queue
- name: removed.events
type: long
metric_type: counter
description: >
Number of events removed from the queue
- name: events
type: group
fields:
Expand Down Expand Up @@ -665,6 +719,22 @@
type: long
description: >
Number of write errors
- name: latency
type: group
fields:
- name: histogram
type: group
fields:
- name: count
type: long
- name: max
type: float
- name: median
type: long
- name: p95
type: float
- name: p99
type: float
- name: output
type: group
fields:
Expand Down
11 changes: 7 additions & 4 deletions metricbeat/module/beat/stats/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,13 @@ var (
"bytes": c.Int("bytes"),
"errors": c.Int("errors"),
"latency": c.Dict("latency", s.Schema{
"count": c.Int("count"),
"max": c.Int("max"),
"median": c.Float("median"),
"p99": c.Float("p99"),
"histogram": c.Dict("histogram", s.Schema{
"count": c.Int("count"),
"max": c.Int("max"),
"median": c.Float("median"),
"p95": c.Float("p95"),
"p99": c.Float("p99"),
}),
}),
}),
}),
Expand Down
Loading