How to Install and Uninstall prometheus-pushgateway Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 18,2024

1. Install "prometheus-pushgateway" package

This tutorial shows how to install prometheus-pushgateway on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install prometheus-pushgateway

2. Uninstall "prometheus-pushgateway" package

This tutorial shows how to uninstall prometheus-pushgateway on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove prometheus-pushgateway $ sudo apt autoclean && sudo apt autoremove

3. Information about the prometheus-pushgateway package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: prometheus-pushgateway
Priority: extra
Section: universe/net
Installed-Size: 8578
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Architecture: amd64
Version: 0.2.0+ds-3
Depends: libc6 (>= 2.4), daemon, libjs-bootstrap
Filename: pool/universe/p/prometheus-pushgateway/prometheus-pushgateway_0.2.0+ds-3_amd64.deb
Size: 1951928
MD5sum: 6add604f63c11bd974cc9c83c1866226
SHA1: d20b82736b77daab99333aa4bda28e23f7ee0305
SHA256: 4df5eb900eacd286ecae35b6aa149a158feea9ca9c3d35594e210214c0f6b272
Description-en: Prometheus exporter for ephemereal jobs
The Prometheus Pushgateway exists to allow ephemeral and batch jobs to expose
their metrics to Prometheus. Since these kinds of jobs may not exist long
enough to be scraped, they can instead push their metrics to a Pushgateway.
The Pushgateway then exposes these metrics to Prometheus.
.
The Pushgateway is explicitly not an aggregator, but rather a metrics cache.
It does not have a statsd-like semantics. The metrics pushed are exactly the
same as you would present for scraping in a permanently running program.
.
For machine-level metrics, the textfile collector of prometheus-node-exporter
is usually more appropriate. The Pushgateway is best used for service-level
metrics.
Description-md5: 95fbeb244faa98192d9c460610063023
Built-Using: golang (= 2:1.6~beta2-0ubuntu1), golang-github-julienschmidt-httprouter (= 1.1-1), golang-github-prometheus-common (= 0+git20160104.0a3005b-1), golang-github-prometheus-log (= 0+git20150701.439e5db-1), golang-goprotobuf (= 0.0~git20150526-2), golang-prometheus-client (= 0.7.0+ds-3), golang-protobuf-extensions (= 0+git20150513.fc2b8d3-3)
Homepage: https://github.com/prometheus/pushgateway
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu