-
Notifications
You must be signed in to change notification settings - Fork 5k
Add elasticsearch/ingest_pipeline metricset #34012
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
Merged
Merged
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
c01bbf2
Add support for optional metricsets in xpack mode
joshdover 983b95a
Merge remote-tracking branch 'upstream/main' into xpack-optional
joshdover afd63ff
Simplify metricset loop
joshdover b5d0437
Merge remote-tracking branch 'upstream/main' into xpack-optional
joshdover 60b85e3
go mod tidy
joshdover b086da7
Remove dependency on exp/slices
joshdover 570637a
Add elasticsearch.ingest metricset
joshdover ed0762a
Add processor level metrics with sampling
joshdover a088039
mage fmt
joshdover 3e2c253
Add unit tests for event mapper
joshdover 00342d3
Remame pipeline time fields
joshdover fd056fd
Make ingest metricset optional in xpack mode
joshdover 9783b05
Update x-pack metricbeat reference yml
joshdover 399be78
Update changelog and docs
joshdover 111a3b0
Update fields
joshdover 682f01f
Rename metricset to ingest_pipeline
joshdover 60fae09
Rename time fields to match node_stats metricset
joshdover e223a20
Add example event
joshdover a13b2b7
Fix docs mentioning host module
joshdover 35931c4
Update docs and fields
joshdover d09de60
Remove useless unit test
joshdover 2c0b9b2
Merge remote-tracking branch 'upstream/main' into es-ingest
joshdover f912521
Merge branch 'main' into es-ingest
joshdover 605f3e6
Merge branch 'main' into es-ingest
joshdover ed09ca6
Use realistic cluster and node ids
joshdover 3f8dbed
Remove ShouldSkipFetch call
joshdover File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
29 changes: 29 additions & 0 deletions
29
metricbeat/docs/modules/elasticsearch/ingest_pipeline.asciidoc
This file contains hidden or 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/metricbeat/module/elasticsearch/ingest_pipeline/_meta/docs.asciidoc | ||
|
|
||
|
|
||
| [[metricbeat-metricset-elasticsearch-ingest_pipeline]] | ||
| === Elasticsearch ingest_pipeline metricset | ||
|
|
||
| beta[] | ||
|
|
||
| include::../../../module/elasticsearch/ingest_pipeline/_meta/docs.asciidoc[] | ||
|
|
||
| This is a default metricset. If the host module is unconfigured, this metricset is enabled by default. | ||
|
|
||
| :edit_url: | ||
|
|
||
| ==== Fields | ||
|
|
||
| For a description of each field in the metricset, see the | ||
| <<exported-fields-elasticsearch,exported fields>> section. | ||
|
|
||
| Here is an example document generated by this metricset: | ||
|
|
||
| [source,json] | ||
| ---- | ||
| include::../../../module/elasticsearch/ingest_pipeline/_meta/data.json[] | ||
| ---- | ||
| :edit_url!: |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
58 changes: 58 additions & 0 deletions
58
metricbeat/module/elasticsearch/ingest_pipeline/_meta/data.json
This file contains hidden or 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,58 @@ | ||
| { | ||
| "@timestamp": "2023-01-19T19:08:28.770Z", | ||
| "elasticsearch": { | ||
| "cluster": { | ||
| "id": "XXXX", | ||
| "name": "my-cluster" | ||
| }, | ||
| "node": { | ||
| "name": "instance-0000000022", | ||
| "roles": [ | ||
| "ingest", | ||
| "remote_cluster_client" | ||
| ], | ||
| "id": "ZZZZZ" | ||
| }, | ||
| "ingest_pipeline": { | ||
| "name": "my-pipeline", | ||
| "total": { | ||
| "count": 64, | ||
| "failed": 0, | ||
| "time": { | ||
| "total": { | ||
| "ms": 39 | ||
| }, | ||
| "self": { | ||
| "ms": 39 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "ecs": { | ||
| "version": "8.0.0" | ||
| }, | ||
| "host": { | ||
| "name": "myhost.local" | ||
| }, | ||
| "agent": { | ||
| "type": "metricbeat", | ||
| "version": "8.7.0", | ||
| "ephemeral_id": "80fe51b6-57df-46d1-9240-20424df6d675", | ||
| "id": "faab8154-7ceb-470f-b2ca-0aee636951c3", | ||
| "name": "myhost.local" | ||
| }, | ||
| "event": { | ||
| "dataset": "elasticsearch.ingest_pipeline", | ||
| "module": "elasticsearch", | ||
| "duration": 558169708 | ||
| }, | ||
| "metricset": { | ||
| "period": 10000, | ||
| "name": "ingest_pipeline" | ||
| }, | ||
| "service": { | ||
| "address": "https://localhost:9200", | ||
| "type": "elasticsearch" | ||
| } | ||
| } | ||
22 changes: 22 additions & 0 deletions
22
metricbeat/module/elasticsearch/ingest_pipeline/_meta/docs.asciidoc
This file contains hidden or 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,22 @@ | ||
| This is the ingest_pipeline metricset of the module elasticsearch. | ||
|
|
||
| Collects metrics on ingest pipeline executions, with processor-level granularity. | ||
|
|
||
| [float] | ||
| === Processor-level metrics sampling | ||
|
|
||
| Processor-level metrics can produce a high volume of data, so the default behavior is to collect those metrics less | ||
| frequently than the `period` for pipeline-level metrics, by applying a sampling strategy. By default, the | ||
| processor-level metrics will be collected during 25% of the time. This can be configured with the | ||
| `ingest.processor_sample_rate` setting: | ||
|
|
||
| [float] | ||
| === Configuration example | ||
| [source,yaml] | ||
| ---- | ||
| - module: elasticsearch | ||
| period: 10s | ||
| metricsets: | ||
| - ingest | ||
| ingest.processor_sample_rate: 0.1 # decrease to 10% of fetches | ||
| ---- |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.