-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[AWS ECS container receiver]Add new metric for stopped container #2383
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2383 +/- ##
=======================================
Coverage 90.95% 90.95%
=======================================
Files 411 411
Lines 20533 20546 +13
=======================================
+ Hits 18675 18687 +12
- Misses 1397 1398 +1
Partials 461 461
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
receiver/awsecscontainermetricsreceiver/awsecscontainermetrics/accumulator.go
Outdated
Show resolved
Hide resolved
receiver/awsecscontainermetricsreceiver/awsecscontainermetrics/accumulator.go
Outdated
Show resolved
Hide resolved
receiver/awsecscontainermetricsreceiver/awsecscontainermetrics/constant.go
Outdated
Show resolved
Hide resolved
receiver/awsecscontainermetricsreceiver/awsecscontainermetrics/accumulator.go
Outdated
Show resolved
Hide resolved
Can we get this pr merged? |
receiver/awsecscontainermetricsreceiver/awsecscontainermetrics/accumulator.go
Outdated
Show resolved
Hide resolved
@JohnWu20 this is a small hack, we probably should handle this differently in the future. Before merging I want to make sure that you are ok to change this in case we find a better solution to report this. |
Sure, I am OK to change this if we have better solutions in the future. |
This pr has got approved for a lot of days, can we get it merge now? @bogdandrutu |
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* [AWS ECS container receiver]Add new metric for stopped container * [AWS ECS container receiver]Add new metric for stopped container * variable name chang * add more test cases * Add unit tests * re-run unit test * Solve the file conflict * Update the layout
…2383) Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Description:
The processors and exporters will drop the data which only has the resource data but without metric data. However, for our ecs container receiver, we get only resource data when the container stopped. We need this data export to backend, so this pr will add a new metric called container.duration to calculate the container's running time for the stopped containers.
Testing:
Unit Test, and local test.