-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add metricbeat benchmark module (#41801)
* add metricbeat benchmark module --------- Co-authored-by: Shaunak Kashyap <[email protected]>
- Loading branch information
1 parent
3f51793
commit 9c45417
Showing
20 changed files
with
480 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
:modulename: benchmark | ||
:edit_url: https://github.com/elastic/beats/edit/main/x-pack/metricbeat/module/benchmark/_meta/docs.asciidoc | ||
|
||
|
||
[[metricbeat-module-benchmark]] | ||
[role="xpack"] | ||
== Benchmark module | ||
|
||
beta[] | ||
|
||
include::{libbeat-dir}/shared/integration-link.asciidoc[] | ||
|
||
:modulename!: | ||
|
||
The `benchmark` module is used to generate synthetic metrics at a predictable rate. This can be useful when you want to test output settings or test system sizing without using real data. | ||
|
||
The `benchmark` module metricset is `info`. | ||
|
||
[source,yaml] | ||
---- | ||
- module: benchmark | ||
metricsets: | ||
- info | ||
enabled: true | ||
period: 10s | ||
---- | ||
|
||
[float] | ||
== Metricsets | ||
|
||
[float] | ||
=== `info` | ||
A metric that includes a `counter` field which is used to keep the metric unique. | ||
|
||
[float] | ||
=== Module-specific configuration notes | ||
|
||
`count`:: number, the number of metrics to emit per fetch. | ||
|
||
|
||
|
||
|
||
|
||
:edit_url: | ||
|
||
[float] | ||
=== Example configuration | ||
|
||
The Benchmark module supports the standard configuration options that are described | ||
in <<configuration-metricbeat>>. Here is an example configuration: | ||
|
||
[source,yaml] | ||
---- | ||
metricbeat.modules: | ||
- module: benchmark | ||
metricsets: | ||
- info | ||
enabled: false | ||
period: 10s | ||
---- | ||
|
||
[float] | ||
=== Metricsets | ||
|
||
The following metricsets are available: | ||
|
||
* <<metricbeat-metricset-benchmark-info,info>> | ||
|
||
include::benchmark/info.asciidoc[] | ||
|
||
:edit_url!: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
:edit_url: https://github.com/elastic/beats/edit/main/x-pack/metricbeat/module/benchmark/info/_meta/docs.asciidoc | ||
|
||
|
||
[[metricbeat-metricset-benchmark-info]] | ||
[role="xpack"] | ||
=== Benchmark info metricset | ||
|
||
beta[] | ||
|
||
include::../../../../x-pack/metricbeat/module/benchmark/info/_meta/docs.asciidoc[] | ||
|
||
|
||
:edit_url: | ||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-benchmark,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../../x-pack/metricbeat/module/benchmark/info/_meta/data.json[] | ||
---- | ||
:edit_url!: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- module: benchmark | ||
metricsets: | ||
- info | ||
enabled: false | ||
period: 10s | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
include::{libbeat-dir}/shared/integration-link.asciidoc[] | ||
|
||
:modulename!: | ||
|
||
The `benchmark` module is used to generate synthetic metrics at a predictable rate. This can be useful when you want to test output settings or test system sizing without using real data. | ||
|
||
The `benchmark` module metricset is `info`. | ||
|
||
[source,yaml] | ||
---- | ||
- module: benchmark | ||
metricsets: | ||
- info | ||
enabled: true | ||
period: 10s | ||
---- | ||
|
||
[float] | ||
== Metricsets | ||
|
||
[float] | ||
=== `info` | ||
A metric that includes a `counter` field which is used to keep the metric unique. | ||
|
||
[float] | ||
=== Module-specific configuration notes | ||
|
||
`count`:: number, the number of metrics to emit per fetch. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- key: benchmark | ||
title: "Benchmark" | ||
release: beta | ||
description: > | ||
benchmark module | ||
fields: | ||
- name: benchmark | ||
type: group | ||
description: > | ||
fields: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
// or more contributor license agreements. Licensed under the Elastic License; | ||
// you may not use this file except in compliance with the Elastic License. | ||
|
||
// Package benchmark is a Metricbeat module that contains MetricSets. | ||
package benchmark |
Oops, something went wrong.