---
title: Install pgsm_exporter on Linux | Snap Store
description: Get the latest version of pgsm_exporter for Linux - Prometheus exporter
  for PostgreSQL pg_stat_monitor
url: https://snapcraft.io/pgsm-exporter
---

# pgsm\_exporter (pgsm-exporter)

[Naeem Akhter (naeem-akhter)](https://snapcraft.io/publisher/naeem-akhter "View all snaps from Naeem Akhter (naeem-akhter)")

* [Naeem Akhter (naeem-akhter)](https://snapcraft.io/publisher/naeem-akhter "View all snaps from Naeem Akhter (naeem-akhter)")

latest/stable 0.5.0

Install latest/stable of pgsm\_exporter

---

**Install using the command line**

```
sudo snap install pgsm-exporter
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* pgsm-exporter

---

### License

* Apache-2.0

---

### Last updated

* 3 December 2026 - latest/stable
* Today - latest/edge

---

### Source code

* [github.com/Naeem-Akhter/pgsm\_exporter](https://github.com/Naeem-Akhter/pgsm_exporter "https://github.com/Naeem-Akhter/pgsm_exporter")

---

### Report a bug

* [github.com/Naeem-Akhter/pgsm\_exporter/issues](https://github.com/Naeem-Akhter/pgsm_exporter/issues "https://github.com/Naeem-Akhter/pgsm_exporter/issues")

---

### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/pgsm-exporter#report-snap-modal)

---

* [Description](https://snapcraft.io/pgsm-exporter#tab-description)
* [Security](https://snapcraft.io/pgsm-exporter#tab-security)

#### Prometheus exporter for PostgreSQL pg\_stat\_monitor

Exports per-query statistics from Percona's pg\_stat\_monitor extension as
Prometheus metrics: calls, execution time, rows and shared buffer hits
and reads, as counters that count each completed bucket exactly once.

The exporter runs as a service once a connection string is set:

sudo snap set pgsm-exporter dsn='postgres://pgsm\_exporter@db:5432/postgres'

Other options: listen-address (default :9188) and args (extra flags,
for example "--pgsm.top-n=100"). See the README for the database setup.

---

## Install pgsm\_exporter on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/pgsm-exporter/arch)

[### CentOS](https://snapcraft.io/install/pgsm-exporter/centos)

[### Debian](https://snapcraft.io/install/pgsm-exporter/debian)

[### elementary OS](https://snapcraft.io/install/pgsm-exporter/elementary)

[### Fedora](https://snapcraft.io/install/pgsm-exporter/fedora)

[### KDE Neon](https://snapcraft.io/install/pgsm-exporter/kde-neon)

[### Kubuntu](https://snapcraft.io/install/pgsm-exporter/kubuntu)

[### Manjaro](https://snapcraft.io/install/pgsm-exporter/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/pgsm-exporter/pop)

[### openSUSE](https://snapcraft.io/install/pgsm-exporter/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/pgsm-exporter/rhel)

[### Ubuntu](https://snapcraft.io/install/pgsm-exporter/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/pgsm-exporter/raspbian)
