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

prometheus-nixos-exporter: Expose whether current-system kernel is booted #378

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

mweinelt
Copy link
Member

@mweinelt mweinelt commented Feb 16, 2024

This allows alerting on when the current-system has a different kernel, than the booted one, which usually indicates we should reboot the machine.

@maralorn originally wanted this, and I proposed we extend the exporter for the benefit of NixOS infra.

nixos_current_system_kernel_booted{booted="/nix/store/gp3pl6swvksnj9ws646fnlz553w079pb-linux-6.1.77", current="/nix/store/gp3pl6swvksnj9ws646fnlz553w079pb-linux-6.1.77", instance="eris:9300", job="nixos", role="monitoring"} 1

…oted

This allows alerting on when the current-system has a different kernel,
than the booted one, which usually indicates we should reboot the
machine.
@mweinelt mweinelt merged commit e35c6d1 into master Feb 16, 2024
2 checks passed
@mweinelt mweinelt deleted the nixos-exporter-current-kernel branch February 16, 2024 23:25
@mweinelt
Copy link
Member Author

We'll talk about the prometheus rule next, we're not in a hurry anyway.

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