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.