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

nit: add missing diskSelector to node_filesystem_files_free #550

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jfly
Copy link
Contributor

@jfly jfly commented Feb 1, 2025

IIUC, this doesn't change the behavior of this query at all (Prometheus will still only pick values for node_filesystem_files_free and node_filesystem_files where all the labels match), but perhaps makes it cleaner to read.

I'm extremely new to PromQL, and I'm mostly filing this as a learning opportunity. Are there best practices around this sort of thing? Do we like the way this was written, and should I change our other expressions ot match (some of the other expressions use ${diskSelector} twice).

@jfly jfly changed the title nit: add missing diskSelector to `node_filesystem_files_free nit: add missing diskSelector to node_filesystem_files_free Feb 1, 2025
IIUC, this doesn't change the behavior of this query at all (Prometheus
will still only pick values for `node_filesystem_files_free` and
`node_filesystem_files` where all the labels match), but perhaps
makes it cleaner to read.

I'm extremely new to PromQL, and I'm mostly filing this as a learning
opportunity. Are there best practices around this sort of thing? Do we
like the way this was written, and should I change our other expressions
ot match (some of the other expressions use `${diskSelector}` twice).
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