forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…4302) * Add `elasticsearch/enrich` metricset (elastic#14243) * WIP: elasticsearch/enrich metricset * Adding non-xpack event creation * More changes * Adding docs.asciidoc * Running make update * Adding missing file * Adding data.json * Implement xpack.enabled: true event creation * Adding missing import * Remove license check as enrich is available in basic * Skip enrich integration test against ES versions < 7.5.0 * Skip system tests for enrich metricset with ES < 7.5.0 * Adding integration test * Updating data.json * Adding CHANGELOG entry * Adding system test * Fixing up system tests * Cleanup! * Only try to create enrich stats if enrich feature is available * Fixing skip logic * Fixing up CHANGELOG
- Loading branch information
1 parent
352db8a
commit 2591bbc
Showing
25 changed files
with
746 additions
and
17 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
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,21 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
[[metricbeat-metricset-elasticsearch-enrich]] | ||
=== Elasticsearch enrich metricset | ||
|
||
include::../../../module/elasticsearch/enrich/_meta/docs.asciidoc[] | ||
|
||
|
||
==== 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/enrich/_meta/data.json[] | ||
---- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
metricsets: | ||
- ccr | ||
- cluster_stats | ||
- enrich | ||
- index | ||
- index_recovery | ||
- index_summary | ||
|
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,38 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"elasticsearch": { | ||
"cluster": { | ||
"id": "et6blfihSoytMUvkpYtEKQ", | ||
"name": "docker-cluster" | ||
}, | ||
"enrich": { | ||
"executed_searches": { | ||
"total": 1 | ||
}, | ||
"queue": { | ||
"size": 0 | ||
}, | ||
"remote_requests": { | ||
"current": 0, | ||
"total": 1 | ||
} | ||
}, | ||
"node": { | ||
"id": "l_XOyQ65Teyn4kW4PUFjVg" | ||
} | ||
}, | ||
"event": { | ||
"dataset": "elasticsearch.enrich", | ||
"duration": 115000, | ||
"module": "elasticsearch" | ||
}, | ||
"metricset": { | ||
"name": "enrich", | ||
"period": 10000 | ||
}, | ||
"service": { | ||
"address": "localhost:32780", | ||
"name": "elasticsearch", | ||
"type": "elasticsearch" | ||
} | ||
} |
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,3 @@ | ||
This is the `enrich` metricset of the Elasticsearch module. It interrogates the | ||
Enrich Stats API endpoint to fetch information about Enrich coordinator nodes | ||
in the Elasticsearch cluster that are participating in ingest-time enrichment. |
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,25 @@ | ||
- name: enrich | ||
type: group | ||
description: > | ||
Enrich stats | ||
release: ga | ||
fields: | ||
- name: queue.size | ||
type: long | ||
description: > | ||
Number of search requests in the queue. | ||
- name: remote_requests | ||
type: group | ||
fields: | ||
- name: current | ||
type: long | ||
description: > | ||
Current number of outstanding remote requests. | ||
- name: total | ||
type: long | ||
description: > | ||
Number of outstanding remote requests executed since node startup. | ||
- name: executed_searches.total | ||
type: long | ||
description: > | ||
Number of search requests that enrich processors have executed since node startup. |
1 change: 1 addition & 0 deletions
1
metricbeat/module/elasticsearch/enrich/_meta/test/empty.750.json
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 @@ | ||
{} |
28 changes: 28 additions & 0 deletions
28
metricbeat/module/elasticsearch/enrich/_meta/test/enrich_stats.750.json
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,28 @@ | ||
{ | ||
"executing_policies": [ | ||
{ | ||
"name": "my-policy", | ||
"task": { | ||
"id" : 124, | ||
"type" : "direct", | ||
"action" : "cluster:admin/xpack/enrich/execute", | ||
"start_time_in_millis" : 1458585884904, | ||
"running_time_in_nanos" : 47402, | ||
"cancellable" : false, | ||
"parent_task_id" : "oTUltX4IQMOUUVeiohTt8A:123", | ||
"headers" : { | ||
"X-Opaque-Id" : "123456" | ||
} | ||
} | ||
} | ||
], | ||
"coordinator_stats": [ | ||
{ | ||
"node_id": "1sFM8cmSROZYhPxVsiWew", | ||
"queue_size": 0, | ||
"remote_requests_current": 0, | ||
"remote_requests_total": 0, | ||
"executed_searches_total": 0 | ||
} | ||
] | ||
} |
Oops, something went wrong.