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 container instance id as a placeholder #3167

Merged
merged 1 commit into from
Apr 21, 2021

Conversation

JohnWu20
Copy link
Contributor

@JohnWu20 JohnWu20 commented Apr 19, 2021

Description:

AWS ECS container insights instance level metrics use ContainerInstanceId for the log stream name, so this pr is to add container instance id as a placeholder.

Allow to use ContainerInstanceId as placeholder in log group/stream name.

Add unit test for ContainerInstanceId placeholder.

Update tests and readme

@JohnWu20 JohnWu20 requested a review from anuraaga as a code owner April 19, 2021 06:09
@JohnWu20 JohnWu20 requested a review from a team April 19, 2021 06:09
@codecov
Copy link

codecov bot commented Apr 19, 2021

Codecov Report

Merging #3167 (69d3f84) into main (c731ffe) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3167      +/-   ##
==========================================
- Coverage   91.82%   91.81%   -0.01%     
==========================================
  Files         492      492              
  Lines       23692    23692              
==========================================
- Hits        21755    21753       -2     
- Misses       1432     1433       +1     
- Partials      505      506       +1     
Flag Coverage Δ
integration 63.26% <ø> (-0.06%) ⬇️
unit 90.82% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
exporter/awsemfexporter/util.go 100.00% <ø> (ø)
receiver/k8sclusterreceiver/watcher.go 95.29% <0.00%> (-2.36%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c731ffe...69d3f84. Read the comment docs.

Copy link
Contributor

@hossain-rayhan hossain-rayhan left a comment

Choose a reason for hiding this comment

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

LGTM except the minor comment on README.

@JohnWu20 JohnWu20 force-pushed the AddContainerInstanceId branch from 3ae9be8 to 69d3f84 Compare April 19, 2021 18:56
@bogdandrutu bogdandrutu merged commit be47f6f into open-telemetry:main Apr 21, 2021
pmatyjasek-sumo pushed a commit to pmatyjasek-sumo/opentelemetry-collector-contrib that referenced this pull request Apr 28, 2021
punya pushed a commit to punya/opentelemetry-collector-contrib that referenced this pull request Jul 21, 2021
…y#3167)

* Replace ReceiverCreateParams with ReceiverCreateSettings.
Replace all dependencies in Receivers.

Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>

# Conflicts:
#	component/receiver.go

# Conflicts:
#	exporter/opencensusexporter/opencensus_test.go
#	exporter/prometheusexporter/end_to_end_test.go

* Update changelog

Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>

# Conflicts:
#	CHANGELOG.md

# Conflicts:
#	CHANGELOG.md

# Conflicts:
#	CHANGELOG.md

* Add missing file

Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>
alexperez52 referenced this pull request in open-o11y/opentelemetry-collector-contrib Aug 18, 2021
* Replace ReceiverCreateParams with ReceiverCreateSettings.
Replace all dependencies in Receivers.

Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>

# Conflicts:
#	component/receiver.go

# Conflicts:
#	exporter/opencensusexporter/opencensus_test.go
#	exporter/prometheusexporter/end_to_end_test.go

* Update changelog

Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>

# Conflicts:
#	CHANGELOG.md

# Conflicts:
#	CHANGELOG.md

# Conflicts:
#	CHANGELOG.md

* Add missing file

Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants