forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from YANG-DB/otel-opensearch-data-prep
Otel Opensearch data prep
- Loading branch information
Showing
9 changed files
with
153 additions
and
6 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,52 @@ | ||
![data-prepper](dataPrepper.svg) | ||
|
||
# What is Data Prepper | ||
|
||
[Data Prepper](https://github.com/opensearch-project/data-prepper/blob/main/docs/overview.md) is an open source utility service. Data Prepper is a server side data collector with abilities to filter, enrich, transform, normalize and aggregate data for downstream analytics and visualization. The broader vision for Data Prepper is to enable an end-to-end data analysis life cycle from gathering raw logs to facilitating sophisticated and actionable interactive ad-hoc analyses on the data. | ||
|
||
# What is Data Prepper Integration | ||
|
||
Data Prepper integration is concerned with the following aspects | ||
|
||
- Allow simple and automatic generation of all schematic structured | ||
- traces ( including specific fields mapping to map to SS4O schema) | ||
- services ( adding support for specific service mapping category) | ||
- metrics (using the standard SS4O schema) | ||
|
||
- Add Dashboard Assets for correlation between traces-services-metrics | ||
|
||
- Add correlation queries to investigate traces based metrics | ||
|
||
# Data - Prepper Trace Fields | ||
Data Prepper uses the following [Traces](https://github.com/opensearch-project/data-prepper/blob/main/docs/schemas/trace-analytics/otel-v1-apm-span-index-template.md) mapping file | ||
The next fields are used: | ||
```text | ||
- traceId - A unique identifier for a trace. All spans from the same trace share the same traceId. | ||
- spanId - A unique identifier for a span within a trace, assigned when the span is created. | ||
- traceState - Conveys information about request position in multiple distributed tracing graphs. | ||
- parentSpanId - The spanId of this span's parent span. If this is a root span, then this field must be empty. | ||
- name - A description of the span's operation. | ||
- kind - The type of span. See OpenTelemetry - SpanKind. | ||
- startTime - The start time of the span. | ||
- endTime - The end time of the span. | ||
- durationInNanos - Difference in nanoseconds between startTime and endTime. | ||
- serviceName - Currently derived from the opentelemetry.proto.resource.v1.Resource associated with the span, the resource from the span originates. | ||
- events - A list of events. See OpenTelemetry - Events. | ||
- links - A list of linked spans. See OpenTelemetry - Links. | ||
- droppedAttributesCount - The number of attributes that were discarded. | ||
- droppedEventsCount - The number of events that were discarded. | ||
- droppedLinksCount - The number of links that were dropped. | ||
- span.attributes.* - All span attributes are split into a list of keywords. | ||
- resource.attributes.* - All resource attributes are split into a list of keywords. | ||
- status.code - The status of the span. See OpenTelemetry - Status. | ||
``` | ||
There are some additional `trace.group` related fields which are not part of the [OTEL spec](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md) for traces | ||
```text | ||
- traceGroup - A derived field, the name of the trace's root span. | ||
- traceGroupFields.endTime - A derived field, the endTime of the trace's root span. | ||
- traceGroupFields.statusCode - A derived field, the status.code of the trace's root span. | ||
- traceGroupFields.durationInNanos - A derived field, the durationInNanos of the trace's root span. | ||
``` |
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 @@ | ||
ssl: false |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---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X2TTnze1+i5hKXQHMwDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4IB | ||
AQBoQHvwsR34hGO2m8qVR9nQ5Klo5HYPyd6ySKNcT36OZ4AQfaCGsk+SecTi35QF | ||
RHL3g2qffED4tKR0RBNGQSgiLavmHGCh3YpDupKq2xhhEeS9oBmQzxanFwWFod4T | ||
nnsG2cCejyR9WXoRzHisw0KJWeuNlwjUdJY0xnn16srm1zL/M/f0PvCyh9HU1mF1 | ||
ivnOSqbDD2Z7JSGyckgKad1Omsg/rr5XYtCeyJeXUPcmpeX6erWJJNTUh6yWC/hY | ||
G/dFC4xrJhfXwz6Z0ytUygJO32bJG4Np2iGAwvvgI9EfxzEv/KP+FGrJOvQJAq4/ | ||
BU36ZAa80W/8TBnqZTkNnqZV | ||
-----END CERTIFICATE----- |
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,37 @@ | ||
entry-pipeline: | ||
delay: "100" | ||
source: | ||
otel_trace_source: | ||
ssl: false | ||
sink: | ||
- pipeline: | ||
name: "raw-pipeline" | ||
- pipeline: | ||
name: "service-map-pipeline" | ||
raw-pipeline: | ||
source: | ||
pipeline: | ||
name: "entry-pipeline" | ||
processor: | ||
- otel_trace_raw: | ||
sink: | ||
- opensearch: | ||
hosts: [ "https://opensearch-node1:9200" ] | ||
insecure: true | ||
username: "admin" | ||
password: "admin" | ||
index_type: trace-analytics-raw | ||
service-map-pipeline: | ||
delay: "100" | ||
source: | ||
pipeline: | ||
name: "entry-pipeline" | ||
processor: | ||
- service_map_stateful: | ||
sink: | ||
- opensearch: | ||
hosts: ["https://opensearch-node1:9200"] | ||
insecure: true | ||
username: "admin" | ||
password: "admin" | ||
index_type: trace-analytics-service-map |
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