-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Improve tagger #586
Improve tagger #586
Conversation
2ca32a1
to
23beec8
Compare
# | ||
# We can extract container label or environment variables | ||
# as metric tags. If you prefix your tag name with +, it | ||
# will only be added to high cardinality metrics (docker check) |
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.
nothing to change here, just a thought: we'll need to document the high cardinality very well and carefully once it's better defined
633a288
to
9b467d2
Compare
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.
Only a small nit, feel free to ignore
// NeedInit returns true if InitDockerUtil has to be called | ||
// before using the package | ||
func NeedInit() bool { | ||
if globalDockerUtil == nil { |
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.
I would return globalDockerUtil == nil
What does this PR do?
Add docker tags to the tagger.
Motivation
This is needed to build a docker check.
Additional Notes
This is based on #585, you can skip the
pkg/util
folder from your review.