-
Notifications
You must be signed in to change notification settings - Fork 40
Include Stage name in emitted metrics and dashboards #1488
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
Changes from all commits
f7dc7c5
f44a26a
9489b32
26e765a
2d96f6c
99bf768
cd2535b
5dbd515
37a4cdb
badde92
4ae5d37
0c3d0f0
d25c0c3
1a55a8d
be2dc90
0ce03bc
57401a4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | ||
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 |
---|---|---|
|
@@ -2,6 +2,9 @@ receivers: | |
otlp: | ||
protocols: | ||
grpc: | ||
endpoint: :4317 | ||
http: | ||
endpoint: :4318 | ||
|
||
processors: | ||
|
||
|
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: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needed to upgrade otel, |
||
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 |
---|---|---|
|
@@ -2,24 +2,49 @@ receivers: | |
otlp: | ||
protocols: | ||
grpc: | ||
endpoint: :4317 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It appears the default here changed from |
||
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: | ||
|
@@ -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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM grafana/grafana:11.1.0 | ||
FROM grafana/grafana:11.6.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This wasn't needed, i can revert if we want There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
---|---|---|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, see earlier comment which i adjusted to fix, as well as
|
||
|
||
COPY otel-config*.yaml /etc/ | ||
CMD ["--config", "/etc/otel-config-debug-only.yaml"] | ||
|
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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