-
Notifications
You must be signed in to change notification settings - Fork 3.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
Docker logging driver: Add a keymod for the extra attributes from the Docker logging driver #2459
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2459 +/- ##
==========================================
- Coverage 62.90% 62.74% -0.16%
==========================================
Files 162 162
Lines 13964 13966 +2
==========================================
- Hits 8784 8763 -21
- Misses 4496 4519 +23
Partials 684 684
|
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.
Hey, thanks for the PR. I'm not very familiar with this part of the codebase but this looks sound. I'd really like to see some test additions to give confidence and help prevent regressions in the future.
Sorry for the wait and thanks for the well reasoned issue/pr :)
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
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.
LGTM
sorry for the late reply.
What this PR does / why we need it: Docker labelling best practices are to use labels with reverse DNS notation, but as Prometheus has a completely different view on this, it makes it very incompatible to collect custom labels which abide by Docker labelling practices, using the Docker logging driver.
Currently, the code has some special treatment for the Docker's labels, it should be possible to generalize this.
An easy way is to do a keymod when getting the extra attributes from Docker and replacing every
.
by_
Which issue(s) this PR fixes:
Fixes #2455
Special notes for your reviewer:
Checklist