Skip to content

Instantly share code, notes, and snippets.

@lfittl
Last active August 29, 2016 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfittl/2cb8efa0d21a3a09735181affec3a2ce to your computer and use it in GitHub Desktop.
Save lfittl/2cb8efa0d21a3a09735181affec3a2ce to your computer and use it in GitHub Desktop.
pganalyze-collector installation instructions for other distributions

First, we'll need to place a few files in the right location:

curl -o /usr/bin/pganalyze-collector https://github.com/pganalyze/collector/releases/download/v0.9.4/pganalyze-collector-linux-amd64
curl -o /etc/systemd/system/pganalyze-collector.service https://github.com/pganalyze/collector/blob/master/contrib/systemd/pganalyze-collector.service
curl -o /etc/pganalyze-collector.conf https://github.com/pganalyze/collector/blob/master/contrib/pganalyze-collector.conf

In addition, run the following commands:

chmod +x /usr/bin/pganalyze-collector
adduser --system --home /var/lib/pganalyze-collector --no-create-home --shell /bin/bash pganalyze
addgroup --system --quiet pganalyze
usermod -g pganalyze pganalyze 
mkdir -p /var/lib/pganalyze-collector
chown pganalyze /var/lib/pganalyze-collector
systemctl daemon-reload
systemctl start pganalyze-collector.service

Then, you should have the collector running in the background already, although not configured yet.

You should be able to continue with https://pganalyze.com/docs/install/03_configuring_the_collector now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment