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 security update metrics for yum.sh #218

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Britaliope
Copy link

Small modification to yum.sh to integrate new gauges that only list security updates.

On older systems, it require yum-plugin-security to work, but on newer systems (el7 and newer IIRC) it is native.

sample output:

# HELP yum_upgrades_pending Yum package pending updates by origin.
# TYPE yum_upgrades_pending gauge
yum_upgrades_pending{origin="appstream",category="all"} 87
yum_upgrades_pending{origin="baseos",category="all"} 192
yum_upgrades_pending{origin="crb",category="all"} 1
yum_upgrades_pending{origin="epel",category="all"} 43
yum_upgrades_pending{origin="extras",category="all"} 1
yum_upgrades_pending{origin="appstream",category="security"} 22
yum_upgrades_pending{origin="baseos",category="security"} 42

yum.sh Outdated Show resolved Hide resolved
yum.sh Outdated Show resolved Hide resolved
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