dpkg2ne

command
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

README

dpkg2ne

dpkg2ne exports all package versions to prometheus.

  • dpkg2ne_last_run_timestamp_seconds <epoch> (gauge)
  • dpkg2ne_run_duration_seconds <duration> (gauge)
  • dpkg2ne_pkg_version{package="<pkg>", version="<version>"} (gauge)

It's essentially a small (Go) wrapper around: dpkg-query -Wf '${Package},${Version}\n'

Yes, this seems like to have quite some label cardinality, but we want to need this information in Grafana. Maybe doing it via logging and Graylog at some point proves a better idea.

Compile and test run with ./dpkg2ne -w=false.

As all *ne cmds this depends on the node-exporter text export.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL