aboutsummaryrefslogtreecommitdiff
path: root/prometheus_pacman_exporter (unfollow)
Commit message (Collapse)Author
11 daysdocs(cli): clarify checkupdates optionDennis Fink
Clarify that --use-checkupdates replaces pacman when checking for available package updates. Update the README usage output to match the revised CLI help text.
11 daysrefactor(commands): model package queries explicitlyDennis Fink
Introduce a PackageQuery type to group each command with its description, metric, and accepted exit codes. Move the static pacman queries into module-level constants and construct only the update and optional AUR queries at runtime. Use immutable command tuples throughout and rename success_codes to accepted_exit_codes to better describe the command execution contract.
11 daysdocs(cli): clarify checkupdates behaviorDennis Fink
Add help text for --use-checkupdates and clarify that checkupdates is provided by pacman-contrib and checks for available updates without modifying the system package databases. Separate the AUR update documentation into its own paragraph for readability.
11 daysfix(commands): classify command failures for retriesDennis Fink
Allow command invocations to define which child exit codes are considered successful, including checkupdates exit status 2 when no updates are available. Classify unexpected child command failures as exporter exit status 1 so systemd treats them as runtime failures eligible for retry. Keep exit status 2 for CLI usage errors, which are configuration problems and should not be retried. Update the systemd service with RestartPreventExitStatus=2 so only retryable runtime failures trigger the configured restart policy.
11 daysfeat(cli): report collected package countsDennis Fink
Add human-readable descriptions to package queries and emit each collected count when verbose output is enabled. Rename the pacman query command variable to clarify that it is reused as the base command for multiple package queries.