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

Added support for labels #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jamtur01
Copy link

Labels are Docker's way of adding custom metadata to containers and images. They can be applied at image build or at runtime. They are exposed via the Docker API in the containers call.

This PR adds those labels to container as container['Labels']. They are then parsed and appended to the plugin_instance value, for example:

:plugin_instance redis[app2.test=bob,application.test.test.test=tornado]

Given that collectd only has a 64 character limit for values this isn't ideal but is a fast way to allow us to expose a Docker container's metadata.

@jamtur01 jamtur01 force-pushed the labels branch 4 times, most recently from 06c839c to d257b89 Compare March 15, 2016 01:43
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.

1 participant