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

Add options to configure tagging #1218

Merged
merged 2 commits into from
Nov 24, 2014
Merged

Add options to configure tagging #1218

merged 2 commits into from
Nov 24, 2014

Conversation

LotharSee
Copy link
Contributor

Some cleanup for Docker metrics tags.

  • Make tagging by command optional (false by default)
  • Rename tags to remove conflicts with AWS tags. Off by default
    but on in the default configuration
  • Clean the example configuration file indentation

* Make tagging by command optional (false by default)
* Rename tags to remove conflicts with AWS tags. Off by default
  but on in the default configuration
* Clean the example configuration file indentation
elif tag == "command":
return "container_command"
else:
return tag
Copy link
Contributor

Choose a reason for hiding this comment

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

what about:

TAGS_MAP = {"name": "container_name", "image": "docker_image", "command": "container_command" }
def _new_tags_conversion(self, tag):
    return TAGS_MAP.get(tag, tag)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

remh added a commit that referenced this pull request Nov 24, 2014
@remh remh merged commit 8b48112 into master Nov 24, 2014
@remh remh deleted the docker-new-tagging branch November 25, 2014 17:09
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.

2 participants