-
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 Input Plugin Measure Thin Pool Minimum Free Space #6084
Docker Input Plugin Measure Thin Pool Minimum Free Space #6084
Conversation
I think we may want to reorganize the storage driver metrics. Right now the devicemapper metrics are spread out over several measurements:
We can't get rid of these, since we don't want to break any queries, dashboards, alerts, etc. However, we can deprecate them and try again. I think this layout would be preferable:
I like this layout more because it gives us room to grow, without a measurement explosion, and it groups all the devicemapper related values into a single measurement. |
I like it @danielnelson update: as I implement this I am just adding a note here that I will start with precisely the list of fields you describe there (minus "other stuff") with the addition of pool_blocksize. Since there are all byte measurements which I imagine might be the most useful. Some other possibilities are:
Do we want any or all of these to be included in this PR? |
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.
It's hard to know where to draw the line between collecting everything and not enough, there isn't a correct answer really. My instinct is to add only base_device_size_bytes
now and leave the rest off for later.
@akhon Do you need to monitor any of these other values?
@@ -142,6 +142,23 @@ some storage drivers such as devicemapper. | |||
- total | |||
- used | |||
|
|||
The above measurements for the devicemapper storage driver can now be found in the new `docker_devicemapper` measurement | |||
|
|||
- docker_devicemapper |
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.
You don't need to fix this, but this is good opportunity to show an obscure README issue. In Markdown, or maybe it's only Github Markdown, if you have multiple nested lists you will need to alter the first list character when repeating them, otherwise you get a weird bit of inconsistent vertical whitespace. To see this, in the current plugin README compare the vertical whitespace difference between the docker measurement and the docker_data. We usually use -
and +
.
Bad:
- foo
- bar
- foo2
- bar2
- foo3
- bar3
- foo4
- bar4
Good:
- foo
- bar
+ foo2
- bar2
- foo3
- bar3
+ foo4
- bar4
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.
Oh yeah that is weird. Nice I did not know this!
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.
What have you done. Now I can't unsee the whitespace 😂
Closes #5758
This adds a new measurement
docker_thin_pool
with the fieldminimum_free_space
measured in bytes.Required for all PRs: