Skip to content

Commit

Permalink
Updated pipeline configurations and documentation to prefer the OpenS…
Browse files Browse the repository at this point in the history
…earch index_type configuration over the trace_analytics_raw and trace_analytics_service_map booleans. The latter two configurations are deprecated and will be removed in 2.0. (opensearch-project#1650)

Signed-off-by: David Venable <[email protected]>

Signed-off-by: David Venable <[email protected]>
  • Loading branch information
dlvenable authored and engechas committed Sep 12, 2022
1 parent 8d4fd16 commit 3dcfabd
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions data-prepper-plugins/opensearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pipeline:
cert: path/to/cert
username: YOUR_USERNAME_HERE
password: YOUR_PASSWORD_HERE
trace_analytics_raw: true
index_type: trace-analytics-raw
dlq_file: /your/local/dlq-file
bulk_size: 4
```
Expand All @@ -37,7 +37,7 @@ pipeline:
cert: path/to/cert
username: YOUR_USERNAME_HERE
password: YOUR_PASSWORD_HERE
trace_analytics_service_map: true
index_type: trace-analytics-service-map
dlq_file: /your/local/dlq-file
bulk_size: 4
```
Expand Down
8 changes: 4 additions & 4 deletions deployment-template/ec2/data-prepper-ec2-deployment-cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,26 +145,26 @@ Resources:
\ hosts: [ \"${AmazonEsEndpoint}\" ]\n
\ aws_sigv4: true\n
\ aws_region: \"${AmazonEsRegion}\"\n
\ trace_analytics_raw: true"
\ index_type: trace-analytics-raw"
- !Sub "\n
\ hosts: [ \"${AmazonEsEndpoint}\" ]\n
\ aws_sigv4: false\n
\ username: \"${Username}\"\n
\ password: \"${Password}\"\n
\ trace_analytics_raw: true"
\ index_type: trace-analytics-raw"
serviceMapConfig: !If
- NoMasterUser
- !Sub "\n
\ hosts: [ \"${AmazonEsEndpoint}\" ]\n
\ aws_sigv4: true\n
\ aws_region: \"${AmazonEsRegion}\"\n
\ trace_analytics_service_map: true"
\ index_type: trace-analytics-service-map"
- !Sub "\n
\ hosts: [ \"${AmazonEsEndpoint}\" ]\n
\ aws_sigv4: false\n
\ username: \"${Username}\"\n
\ password: \"${Password}\"\n
\ trace_analytics_service_map: true"
\ index_type: trace-analytics-service-map"
mode: "000400"
owner: root
group: root
Expand Down
4 changes: 2 additions & 2 deletions docs/trace_analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ raw-pipeline:
sink:
- opensearch:
hosts: [ "https://localhost:9200" ]
trace_analytics_raw: true
index_type: trace-analytics-raw
# Change to your credentials
username: "admin"
password: "admin"
Expand Down Expand Up @@ -155,7 +155,7 @@ service-map-pipeline:
sink:
- opensearch:
hosts: [ "https://localhost:9200" ]
trace_analytics_service_map: true
index_type: trace-analytics-service-map
# Change to your credentials
username: "admin"
password: "admin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ raw-pipeline:
hosts: [ "https://node-0.example.com:9200" ]
username: "admin"
password: "admin"
trace_analytics_raw: true
index_type: trace-analytics-raw
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ raw-pipeline:
hosts: [ "https://node-0.example.com:9200" ]
username: "admin"
password: "admin"
trace_analytics_raw: true
index_type: trace-analytics-raw
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ raw-pipeline:
hosts: [ "https://node-0.example.com:9200" ]
username: "admin"
password: "admin"
trace_analytics_raw: true
index_type: trace-analytics-raw
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ raw-pipeline:
hosts: [ "https://node-0.example.com:9200" ]
username: "admin"
password: "admin"
trace_analytics_raw: true
index_type: trace-analytics-raw
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ service-map-pipeline:
hosts: ["https://node-0.example.com:9200"]
username: "admin"
password: "admin"
trace_analytics_service_map: true
index_type: trace-analytics-service-map
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ service-map-pipeline:
hosts: ["https://node-0.example.com:9200"]
username: "admin"
password: "admin"
trace_analytics_service_map: true
index_type: trace-analytics-service-map
4 changes: 2 additions & 2 deletions examples/config/example-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ raw-pipeline:
hosts: [ "https://<your-domain>.<region>.es.amazonaws.com" ]
aws_sigv4: true
aws_region: "us-east-1"
trace_analytics_raw: true
index_type: trace-analytics-raw
service-map-pipeline:
delay: "100"
source:
Expand All @@ -32,5 +32,5 @@ service-map-pipeline:
hosts: [ "https://<your-domain>.<region>.es.amazonaws.com" ]
aws_sigv4: true
aws_region: "us-east-1"
trace_analytics_service_map: true
index_type: trace-analytics-service-map

4 changes: 2 additions & 2 deletions examples/dev/k8s/data-prepper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ data:
insecure: true
username: "admin"
password: "admin"
trace_analytics_raw: true
index_type: trace-analytics-raw
service-map-pipeline:
delay: "100"
source:
Expand All @@ -51,7 +51,7 @@ data:
insecure: true
username: "admin"
password: "admin"
trace_analytics_service_map: true
index_type: trace-analytics-service-map
kind: ConfigMap
metadata:
creationTimestamp: "2020-12-11T18:07:51Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ raw-pipeline:
cert: "/usr/share/data-prepper/root-ca.pem"
username: "admin"
password: "admin"
trace_analytics_raw: true
index_type: trace-analytics-raw
service-map-pipeline:
delay: "100"
source:
Expand All @@ -41,4 +41,4 @@ service-map-pipeline:
cert: "/usr/share/data-prepper/root-ca.pem"
username: "admin"
password: "admin"
trace_analytics_service_map: true
index_type: trace-analytics-service-map
4 changes: 2 additions & 2 deletions examples/trace_analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ raw-pipeline:
cert: "/app/root-ca.pem"
username: "admin"
password: "admin"
trace_analytics_raw: true
index_type: trace-analytics-raw
service-map-pipeline:
delay: "100"
source:
Expand All @@ -36,4 +36,4 @@ service-map-pipeline:
cert: "/app/root-ca.pem"
username: "admin"
password: "admin"
trace_analytics_service_map: true
index_type: trace-analytics-service-map
4 changes: 2 additions & 2 deletions examples/trace_analytics_no_ssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ raw-pipeline:
cert: "/usr/share/data-prepper/root-ca.pem"
username: "admin"
password: "admin"
trace_analytics_raw: true
index_type: trace-analytics-raw
service-map-pipeline:
delay: "100"
source:
Expand All @@ -34,4 +34,4 @@ service-map-pipeline:
cert: "/usr/share/data-prepper/root-ca.pem"
username: "admin"
password: "admin"
trace_analytics_service_map: true
index_type: trace-analytics-service-map
4 changes: 2 additions & 2 deletions release/smoke-tests/data-prepper/config/pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ raw-pipeline:
hosts: [ "https://node-0.example.com:9200" ]
username: "admin"
password: "admin"
trace_analytics_raw: true
index_type: trace-analytics-raw

service-map-pipeline:
delay: "100"
Expand All @@ -47,4 +47,4 @@ service-map-pipeline:
hosts: ["https://node-0.example.com:9200"]
username: "admin"
password: "admin"
trace_analytics_service_map: true
index_type: trace-analytics-service-map

0 comments on commit 3dcfabd

Please sign in to comment.