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

[extension][ecsobserver] Init config and target definition #2939

Merged
merged 3 commits into from
Apr 12, 2021

Conversation

pingleig
Copy link
Contributor

@pingleig pingleig commented Mar 29, 2021

Description:

A smaller part of #2734
Init config and some struct definitions for ECS Prometheus service discovery

btw: 1.4k loc are go.sum, it only have 500 lines for config struct and some large struct for exporting.

===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 Go                     17          961          562          288          111
 Makefile                1            1            1            0            0
 YAML                    1           40           37            1            2

Link to tracking Issue:

Testing:

unit test

Documentation:

No new doc, see #2377 for existing doc

@codecov
Copy link

codecov bot commented Mar 29, 2021

Codecov Report

Merging #2939 (f2c83c0) into main (101b75e) will increase coverage by 0.02%.
The diff coverage is 95.68%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2939      +/-   ##
==========================================
+ Coverage   91.53%   91.55%   +0.02%     
==========================================
  Files         464      471       +7     
  Lines       22799    22915     +116     
==========================================
+ Hits        20868    20979     +111     
- Misses       1438     1441       +3     
- Partials      493      495       +2     
Flag Coverage Δ
integration 68.96% <ø> (ø)
unit 90.52% <95.68%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
extension/observer/ecsobserver/extension.go 80.00% <80.00%> (ø)
extension/observer/ecsobserver/factory.go 86.66% <86.66%> (ø)
extension/observer/ecsobserver/sd.go 90.00% <90.00%> (ø)
extension/observer/ecsobserver/config.go 100.00% <100.00%> (ø)
extension/observer/ecsobserver/docker_label.go 100.00% <100.00%> (ø)
extension/observer/ecsobserver/target.go 100.00% <100.00%> (ø)
extension/observer/ecsobserver/task.go 100.00% <100.00%> (ø)
... and 4 more

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 101b75e...f2c83c0. Read the comment docs.

Copy link
Member

@mxiamxia mxiamxia left a comment

Choose a reason for hiding this comment

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

LGTM!

@pingleig
Copy link
Contributor Author

ping @jrcamp

Copy link
Contributor

@jrcamp jrcamp left a comment

Choose a reason for hiding this comment

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

Thanks for splitting up. Just needs rebasing then lgtm.

extension/observer/ecsobserver/config.go Outdated Show resolved Hide resolved
@pingleig
Copy link
Contributor Author

pingleig commented Apr 1, 2021

@jrcamp rebased and also bumped aws sdk version to match other components.

@pingleig
Copy link
Contributor Author

pingleig commented Apr 5, 2021

ping @bogdandrutu

@bogdandrutu bogdandrutu merged commit 3ea615e into open-telemetry:main Apr 12, 2021
pmatyjasek-sumo pushed a commit to pmatyjasek-sumo/opentelemetry-collector-contrib that referenced this pull request Apr 28, 2021
…metry#2939)

* extension: ecssd Init config and target definition

* extension: ecssd Remove unsued func and consts

* extension: ecssd Update config and use lastest core
alexperez52 referenced this pull request in open-o11y/opentelemetry-collector-contrib Aug 18, 2021
mstumpfx pushed a commit to mstumpfx/opentelemetry-collector-contrib that referenced this pull request Aug 31, 2021
…metry#2939)

* extension: ecssd Init config and target definition

* extension: ecssd Remove unsued func and consts

* extension: ecssd Update config and use lastest core
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.

None yet

4 participants