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

Improve tagger #586

Merged
merged 4 commits into from
Sep 20, 2017
Merged

Improve tagger #586

merged 4 commits into from
Sep 20, 2017

Conversation

hush-hush
Copy link
Member

@hush-hush hush-hush commented Sep 19, 2017

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.

@hush-hush hush-hush mentioned this pull request Sep 19, 2017
@masci masci changed the title Maxivello/improve tagger Improve tagger Sep 19, 2017
@hush-hush hush-hush force-pushed the maxivello/improve-tagger branch from 2ca32a1 to 23beec8 Compare September 20, 2017 08:29
@masci masci added component/collector [deprecated] team/agent-core Deprecated. Use metrics-logs / shared-components labels instead.. team/containers labels Sep 20, 2017
hkaj
hkaj previously approved these changes Sep 20, 2017
#
# 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)
Copy link
Member

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

Copy link
Contributor

@masci masci left a 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 {
Copy link
Contributor

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

@hush-hush hush-hush merged commit 907bf08 into master Sep 20, 2017
@hush-hush hush-hush deleted the maxivello/improve-tagger branch September 20, 2017 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/collector [deprecated] team/agent-core Deprecated. Use metrics-logs / shared-components labels instead.. team/containers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants