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 feature to ignore disk labels by regexp in 'disk' of system metrics #898

Merged
merged 7 commits into from
May 18, 2023

Conversation

kmuto
Copy link
Member

@kmuto kmuto commented May 9, 2023

This patch aims to allow the disk label to be ignored using Go regular expressions, as well as filesystems and interfaces.

example of mackerel-agent.conf:

[disks]
ignore = "loop.*"

(Unfortunately, the system metric graphs cannot be rebuilt, so users have to write above settings before running mackerel-agent to avoid extra disk labels appearing in the graph.)

@kmuto
Copy link
Member Author

kmuto commented May 9, 2023

I checked it worked on Debian GNU/Linux 64bit and Windows 11 Professional 64bit as expected.

Copy link
Member

@inommm inommm left a comment

Choose a reason for hiding this comment

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

LGTM

@kmuto kmuto merged commit 8bb7c04 into mackerelio:master May 18, 2023
6 checks passed
@kmuto kmuto deleted the ignore-disk branch May 18, 2023 06:39
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.

None yet

2 participants