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

Implement option to output information as OpenMetrics time series #308

Merged
merged 1 commit into from
Aug 9, 2024

Commits on Jul 31, 2024

  1. Implement option to output information as OpenMetrics time series

    This new `-o` option will make needrestart output information in a
    format that can be scraped by Prometheus or any other daemon that
    ingests OpenMetrics format.
    
    The -l, -w and -k options can be used in combination with -o in order to
    choose what information gets exported.
    
    Note that the combination of options -ol needs root access in order to
    correctly determine which services use outdated libraries.
    
    The kernel and microcode statuses are output as StateSet type metrics
    since there are more than one states for each one. This way users can
    track the state with more granularity and for example decide to ignore
    "unknown" microcode state or "version_upgrade" (e.g. non ABI-compatible
    upgrade) kernel state.
    For kernel and microcode, there's one Info type metric each that informs
    of the currently running vs. the expected newer version.
    
    (Closes: liske#291)
    Gabriel Filion committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    b372b17 View commit details
    Browse the repository at this point in the history