-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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: strip version from container_image tag #1413
Comments
@sparrc What do you think of this ? |
@skyrocknroll I'm not sure I understand the feature request 100%, but I will say that it is highly recommended that you don't tag metrics with tags that frequently change. Can you give a more concrete example of your current and desired tags? |
@sparrc I completely agree on your point on don't increase the cardinality unnecessarily. required tag: Lets say there are two types of user who uses docker for deployments
In the above two cases whether we split it or not the cardinality of the tags is going to increase.
In the above case whether we split it or not the cardinality of the tags is not going to increase. So the conclusion is the cardinality is increasing or stay same depends on the type of deployment user is doing and does not depends on splitting or non splitting of the docker image tag. |
why do you add a number to your docker container image? I have never seen that practice and I don't think it's recommended. Do you have a reference that recommends that practice? |
I think what you're asking for is only for a "version" tag, if it exists, is that correct? Do you think that could actually be a field? That way we can actually reduce the current cardinality. |
@sparrc It is the build number(or version numbers). The problem right now we are facing is we use nomad to do the deployment and nomad unless the tag name is changed nomad does not pull the updated image from the repo. |
so are you changing the image name or are you using a version tag? |
@sparrc we change the version tag. |
@skyrocknroll got it, I thought you were changing the image name, I agree that we should strip the version tag off of the image name in the making it another tag though worries me in terms of cardinality, would you be opposed to making it a field? |
@sparrc Awesome 🎯 We can put the version tag in field 👍 |
@skyrocknroll I've gone ahead and put the version into a tag, as that will keep cardinality the same, and I think it's reasonable assuming users aren't going to be updating the version more than 100,000 times in one measurement ;-) |
@sparrc Awesome 👍 |
Feature Request
Opening a feature request kicks off a discussion.
Proposal:
Splitting the docker_container_image tag to * docker_container_image* and * docker_container_image_tag*
Current behavior:
Right now the whole image& tag is sent as a single tag in docker_container_image
Desired behavior:
Splitting the docker_container_image tag to * docker_container_image* and * docker_container_image_tag*
Use case: [Why is this important (helps with prioritizing requests)]
Right now we use build number as docker image tag for each micro service
Ex: authenticate:34 Whenever we deploy the new release the image tags changes to different one like authenticate:35
Because of that we need to edit query every time to see latest image metrics after each deployment. We cannot use container_name because nomad uses it to store {job-name}-{allocation-id}. So every deployment container name going to be random.
In this way it does not break the current functionality also adds ability to unify or distinguish based on image tag
The text was updated successfully, but these errors were encountered: