Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
exporters:
awsemf:
namespace: 'OpenSearchMigrations'
dimension_rollup_option: NoDimensionRollup # Reduce number of metrics by only publishing with all dimensions
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate on this ? Our dashboards will make an assumption that dimensions are guaranteed to be present.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only publishes with the most granular dimension, if this was excluded, as an example, we would be publishing the metrics as stage-specific metrics as well as not stage specific

resource_to_telemetry_conversion:
enabled: true

processors:
cumulativetodelta:
resource/metrics:
attributes:
- key: qualifier
value: ${env:QUALIFIER}
action: upsert
resource/remove_default_attributes:
attributes:
- key: telemetry.sdk.name
action: delete
- key: telemetry.sdk.version
action: delete
- key: telemetry.sdk.language
action: delete
- key: service.name
action: delete

service:
pipelines:
metrics:
exporters: [ awsemf ]
processors: [resource/remove_default_attributes, resource/metrics, cumulativetodelta]
exporters: [ awsemf ]
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ receivers:
otlp:
protocols:
grpc:
endpoint: :4317
http:
endpoint: :4318

processors:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
processors:
probabilistic_sampler/traces:
sampling_percentage: ${env:TRACE_SAMPLING_PERCENTAGE:-1}

service:
pipelines:
traces:
processors: [ batch ]
processors: [probabilistic_sampler/traces, batch]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
exporters:
logging:
debug:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to upgrade otel, logging is deprecated/removed

verbosity: detailed
sampling_initial: 5
sampling_thereafter: 200
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
exporters:
logging:
debug:
verbosity: info
sampling_initial: 5
sampling_thereafter: 200
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
service:
pipelines:
logs:
exporters: [logging]
exporters: [debug]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
service:
pipelines:
logs:
exporters: [logging]
exporters: [debug]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
service:
pipelines:
metrics:
exporters: [logging]
exporters: [debug]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
service:
pipelines:
metrics:
exporters: [logging]
exporters: [debug]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
service:
pipelines:
traces:
exporters: [logging]
exporters: [debug]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
service:
pipelines:
traces:
exporters: [logging]
exporters: [debug]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
extensions:
health_check:
endpoint: :13133

service:
extensions: [ health_check ]
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ exporters:
enable_open_metrics: true

service:
telemetry:
metrics:
readers:
- pull:
exporter:
prometheus:
host: '0.0.0.0'
port: 8888
pipelines:
metrics:
exporters: [ prometheus ]
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,49 @@ receivers:
otlp:
protocols:
grpc:
endpoint: :4317
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears the default here changed from :4317 to localhost:4317 which broke some of our inter-container communication without moving this back.

http:
endpoint: :4318
processors:
batch:
timeout: 10s
send_batch_size: 8192
send_batch_max_size: 10000
probabilistic_sampler/traces:
sampling_percentage: ${env:TRACE_SAMPLING_PERCENTAGE:-1}
cumulativetodelta:
resource/metrics:
attributes:
- key: qualifier
value: ${env:QUALIFIER}
action: upsert
resource/remove_default_attributes:
attributes:
- key: telemetry.sdk.name
action: delete
- key: telemetry.sdk.version
action: delete
- key: telemetry.sdk.language
action: delete
- key: service.name
action: delete
extensions:
zpages:
endpoint: :55679
pprof:
endpoint: :1888
health_check:
endpoint: :13133
exporters:
logging:
debug:
verbosity: detailed
sampling_initial: 5
sampling_thereafter: 200
awsemf:
namespace: 'OpenSearchMigrations'
dimension_rollup_option: NoDimensionRollup # Reduce number of metrics by only publishing with all dimensions
resource_to_telemetry_conversion:
enabled: true
awsxray:
index_all_attributes: true
prometheus:
Expand All @@ -36,13 +61,21 @@ service:
pipelines:
metrics:
receivers: [otlp]
processors: [batch]
exporters: [logging, awsemf, prometheus]
processors: [batch, resource/remove_default_attributes, resource/metrics, cumulativetodelta]
exporters: [debug, awsemf, prometheus]
traces:
receivers: [otlp]
processors: [batch]
exporters: [logging, awsxray, otlp/jaeger]
processors: [probabilistic_sampler/traces, batch]
exporters: [debug, awsxray, otlp/jaeger]
logs:
receivers: [otlp]
processors:
exporters: [logging]
exporters: [debug]
telemetry:
metrics:
readers:
- pull:
exporter:
prometheus:
host: '0.0.0.0'
port: 8888
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,25 @@ receivers:
otlp:
protocols:
grpc:
endpoint: :4317
http:
endpoint: :4318
processors:
batch:
timeout: 10s
send_batch_size: 8192
send_batch_max_size: 10000
probabilistic_sampler/traces:
sampling_percentage: ${env:TRACE_SAMPLING_PERCENTAGE:-1}
extensions:
zpages:
endpoint: :55679
pprof:
endpoint: :1888
health_check:
endpoint: :13133
exporters:
logging:
debug:
verbosity: detailed
sampling_initial: 5
sampling_thereafter: 200
Expand All @@ -33,12 +39,20 @@ service:
metrics:
receivers: [otlp]
processors: [batch]
exporters: [logging, prometheus]
exporters: [debug, prometheus]
traces:
receivers: [otlp]
processors: [batch]
exporters: [logging, otlp/jaeger]
processors: [probabilistic_sampler/traces, batch]
exporters: [debug, otlp/jaeger]
logs:
receivers: [otlp]
processors:
exporters: [logging]
exporters: [debug]
telemetry:
metrics:
readers:
- pull:
exporter:
prometheus:
host: '0.0.0.0'
port: 8888
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM grafana/grafana:11.1.0
FROM grafana/grafana:11.6.1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't needed, i can revert if we want

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If all tests are passing with this version update, then let's keep it.


COPY datasources.yaml /usr/share/grafana/conf/provisioning/datasources/
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
{
"Name": "OTelLib",
"Value": "captureProxy"
},
{
"Name": "qualifier",
"Value": "dev"
}
]
},
Expand All @@ -17,6 +21,10 @@
{
"Name": "OTelLib",
"Value": "captureProxy"
},
{
"Name": "qualifier",
"Value": "dev"
}
]
},
Expand All @@ -27,6 +35,10 @@
{
"Name": "OTelLib",
"Value": "replayer"
},
{
"Name": "qualifier",
"Value": "dev"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM public.ecr.aws/aws-observability/aws-otel-collector:v0.38.0
FROM public.ecr.aws/aws-observability/aws-otel-collector:v0.43.3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, does this version update have any breaking changes impact our codebase?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, see earlier comment which i adjusted to fix, as well as logging -> debug

It appears the default here changed from :4317 to localhost:4317 which broke some of our inter-container communication without moving this back.


COPY otel-config*.yaml /etc/
CMD ["--config", "/etc/otel-config-debug-only.yaml"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,59 @@ receivers:
otlp:
protocols:
grpc:
endpoint: :4317
http:
endpoint: :4318
processors:
batch:
timeout: 10s
send_batch_size: 8192
send_batch_max_size: 10000
probabilistic_sampler/traces:
sampling_percentage: ${env:TRACE_SAMPLING_PERCENTAGE:-1}
cumulativetodelta:
resource/metrics:
attributes:
- key: qualifier
value: ${env:QUALIFIER}
action: upsert
resource/remove_default_attributes:
attributes:
- key: telemetry.sdk.name
action: delete
- key: telemetry.sdk.version
action: delete
- key: telemetry.sdk.language
action: delete
- key: service.name
action: delete
extensions:
health_check:
endpoint: :13133
exporters:
logging:
debug:
verbosity: detailed
sampling_initial: 5
sampling_thereafter: 200
awsemf:
namespace: 'OpenSearchMigrations'
dimension_rollup_option: NoDimensionRollup # Reduce number of metrics by only publishing with all dimensions
resource_to_telemetry_conversion:
enabled: true
awsxray:
index_all_attributes: true
service:
extensions: [health_check]
pipelines:
metrics:
receivers: [otlp]
processors: [batch]
exporters: [logging, awsemf]
processors: [batch, resource/remove_default_attributes, resource/metrics, cumulativetodelta]
exporters: [debug, awsemf]
traces:
receivers: [otlp]
processors: [batch]
exporters: [logging, awsxray]
processors: [probabilistic_sampler/traces, batch]
exporters: [debug, awsxray]
logs:
receivers: [otlp]
processors:
exporters: [logging]
exporters: [debug]
Loading
Loading