Skip to content

collector: add tainted collector for /proc/sys/kernel/tainted#3745

Open
arunsrini3082 wants to merge 1 commit into
prometheus:masterfrom
arunsrini3082:kernel-tainted
Open

collector: add tainted collector for /proc/sys/kernel/tainted#3745
arunsrini3082 wants to merge 1 commit into
prometheus:masterfrom
arunsrini3082:kernel-tainted

Conversation

@arunsrini3082

Copy link
Copy Markdown
Contributor

Summary

Add a tainted collector that exposes kernel taint flags from
/proc/sys/kernel/tainted as Prometheus metrics.

This revives the idea originally proposed in #1567. The review feedback
from that PR has been addressed:

Metrics

node_kernel_tainted{bit="14", flag="L"} 0
node_kernel_tainted{bit="12", flag="O"} 1

One series per known taint bit (20 total), value 0 or 1.
Disabled by default — enable with --collector.tainted.

Dependencies

⚠️ This PR depends on prometheus/procfs#844 being merged first.
The go.mod procfs version will be bumped before merging once
that PR is released.

Reference

https://www.kernel.org/doc/html/latest/admin-guide/tainted-kernels.html

Signed-off-by: Arun S <arun.srinivasan@flipkart.com>
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