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

Add ingest_pipeline data streams and dashboards to Elasticsearch package #4597

Merged
merged 21 commits into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
13a28d0
[POC] Add ingest pipeline data streams to es package
joshdover Nov 7, 2022
b23a391
Update with working ingest pipeline, mappings, and dashboard
joshdover Nov 8, 2022
d6d2950
Temp use logs instead
joshdover Nov 8, 2022
7c5ce88
Update
joshdover Nov 28, 2022
264bc06
Update with more cluster and node fields
joshdover Dec 8, 2022
cdde6bf
Add support for displaying metricbeat data
joshdover Dec 12, 2022
e50690a
Add dashboard for processor metrics
joshdover Dec 19, 2022
98630c2
Update package to use metricbeat + new field names
joshdover Jan 19, 2023
fe97cf9
Merge remote-tracking branch 'upstream/main' into es-ingest
joshdover Jan 19, 2023
3714001
Bump minimum version to 8.7.0 for ingest_pipeline support
joshdover Jan 19, 2023
ad8c100
Merge remote-tracking branch 'upstream/main' into es-ingest
joshdover Jan 31, 2023
e113825
bump version
joshdover Feb 1, 2023
08f2d29
Merge remote-tracking branch 'upstream/main' into es-ingest
joshdover Feb 1, 2023
1904ee1
Update changelog
joshdover Feb 3, 2023
31a3f3b
Fix system test config
joshdover Feb 6, 2023
bacf756
Merge remote-tracking branch 'upstream/main' into es-ingest
joshdover Feb 6, 2023
1b5b4c3
Add ingest pipeline load to test
joshdover Feb 6, 2023
c49c82b
Merge remote-tracking branch 'upstream/main' into es-ingest
joshdover Feb 22, 2023
7c91ebd
Bump version to 1.3.0 GA
joshdover Feb 23, 2023
1ae0c6c
Merge remote-tracking branch 'upstream/main' into es-ingest
joshdover Feb 24, 2023
fe9e84e
Bump to 1.4.0-beta1
joshdover Feb 24, 2023
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
5 changes: 5 additions & 0 deletions packages/elasticsearch/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.3.0-preview1"
changes:
- description: Add ingest pipeline monitoring metricset and dashboard
joshdover marked this conversation as resolved.
Show resolved Hide resolved
type: enhancement
link: https://github.com/elastic/integrations/issues/5141
- version: "1.2.0"
changes:
- description: Add period variable to define polling frequency
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type: httpjson
dataset: elasticsearch.stack_monitoring.ingest
vars:
hosts:
- "https://{{Hostname}}:9200"
username: elastic
password: changeme
data_stream: ~
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
metricsets: ["ingest_pipeline"]
hosts:
{{#each hosts}}
- {{this}}
{{/each}}
scope: {{scope}}
{{#if username}}
username: {{username}}
{{/if}}
{{#if password}}
password: {{password}}
{{/if}}
period: {{period}}

ingest_pipeline.processor_sample_rate: {{ingest_pipeline_processor_sampling_rate}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- name: data_stream.type
type: constant_keyword
description: Data stream type.
- name: data_stream.dataset
type: constant_keyword
description: Data stream dataset.
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- name: '@timestamp'
external: ecs
- name: ecs.version
external: ecs
- name: event.dataset
external: ecs
- name: event.duration
external: ecs
- name: event.module
external: ecs
- name: host.name
external: ecs
- name: service.address
type: keyword
description: Service address
- name: service.type
external: ecs
- name: service.name
external: ecs
- name: error.message
external: ecs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
- name: elasticsearch.ingest_pipeline
type: group
release: beta
description: Runtime metrics on ingest pipeline execution
fields:
- name: name
type: wildcard
description: Name / id of the ingest pipeline
- name: total
type: group
description: Metrics on the total ingest pipeline execution, including all processors.
fields:
- name: count
type: long
description: Number of documents processed by this pipeline
- name: failed
type: long
description: Number of documented failed to process by this pipeline
- name: time.total.ms
type: long
description: Total time spent processing documents through this pipeline, inclusive of other pipelines called
- name: time.self.ms
type: long
description: Time spent processing documents through this pipeline, exclusive of other pipelines called
- name: processor
type: group
fields:
- name: type
type: keyword
description: The type of ingest processor
- name: type_tag
type: keyword
description: The type and the tag for this processor in the format "<type>:<tag>"
- name: order_index
type: long
description: The order this processor appears in the pipeline definition
- name: count
type: long
description: Number of documents processed by this processor
- name: failed
type: long
description: Number of documented failed to process by this processor
- name: time.total.ms
type: long
description: Total time spent processing documents through this processor
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
- name: elasticsearch
type: group
fields:
- name: cluster.name
type: keyword
description: |
Elasticsearch cluster name
- name: cluster.id
type: keyword
description: |
Elasticsearch cluster id
- name: node
type: group
fields:
- name: id
type: keyword
description: |
Node ID
- name: name
type: keyword
description: |
Node name
- name: roles
type: keyword
description: |
Node roles
20 changes: 20 additions & 0 deletions packages/elasticsearch/data_stream/ingest_pipeline/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
type: metrics
title: Elasticsearch ingest metrics
release: experimental
dataset: elasticsearch.ingest_pipeline
elasticsearch:
index_template:
mappings:
dynamic: false
streams:
- input: elasticsearch/metrics
title: Ingest Pipeline metrics
description: Collect metrics on Ingest Pipelines
vars:
- name: ingest_pipeline_processor_sampling_rate
type: text
title: Processor metrics sampling rate
description: How often to collect the processor-level metrics. Number between 0 and 1.
required: true
show_user: true
default: "0.25"
Loading