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 recording rules to get inodes data #126

Merged
merged 3 commits into from
Dec 5, 2018

Conversation

benjaminhuo
Copy link
Contributor

@benjaminhuo benjaminhuo commented Nov 28, 2018

add prometheus rules to get inodes data
verified in production env

@benjaminhuo benjaminhuo changed the title add prometheus rules to get inodes data add recording rules to get inodes data Nov 28, 2018
Copy link
Member

@metalmatze metalmatze left a comment

Choose a reason for hiding this comment

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

I'm fine with adding these recording rules.
Do you want to use them for a dashboard?

rules/rules.libsonnet Outdated Show resolved Hide resolved
* on (host_ip) group_right (node)
label_replace(
(max(node_filesystem_files_free{mountpoint="/"}) by (instance)), "host_ip", "$1", "instance", "(.*):.*"
)
Copy link
Member

Choose a reason for hiding this comment

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

Same as above.

Copy link
Contributor Author

@benjaminhuo benjaminhuo Nov 30, 2018

Choose a reason for hiding this comment

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

I've pushed a new commit for this PR to address the concerns you raised.
Let me know if it's ok or not

Thanks
Ben

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there anything else I should change ?

Copy link
Member

Choose a reason for hiding this comment

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

No, I just need some time to test the dashboard. 😉 ☺️ Sorry.

Signed-off-by: Benjamin <benjamin@yunify.com>
@metalmatze
Copy link
Member

screenshot from 2018-12-05 18-52-41

LGTM. Any more comments @brancz @tomwilkie?

@brancz
Copy link
Member

brancz commented Dec 5, 2018

lgtm

@metalmatze metalmatze merged commit 0a482aa into kubernetes-monitoring:master Dec 5, 2018
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.

3 participants