Postgres Monitor Logo
Alpha Release

Demo Account

demo@postgresmonitor.com

Upgrading Your Agent

Page Outline

Overview

To get access to the latest features and fixes in the agent, you should ensure your agent is upgraded to the latest version.

There are two options for upgrading your agent: use git to upgrade with minimal interruption to your agent, or remove your existing agent and go through the full setup process again.

Upgrade with Git

To minimize the number of upgrade steps, use git to update an existing agent running in Heroku.

First Time Upgrade with Git

If this is the first time you are upgrading your agent with git, follow these steps:

  1. Clone the Postgres Monitor agent repo:
git clone git@github.com:postgresmonitor/agent.git --branch latest && cd agent
  1. Set the git remote branch for the Heroku agent:
heroku git:remote -a <agent-name>
  1. Push the latest agent to Heroku:
git push heroku latest
  1. Confirm that metrics are still being reported to Postgres Monitor after a few minutes.

  2. You're finished!

Already Upgraded with Git

If you've upgraded your agent previously, follow these steps:

  1. Switch to the agent directory and pull the latest:
git pull origin latest
  1. Push the latest agent to Heroku:
git push heroku latest
  1. Confirm that metrics are still being reported to Postgres Monitor after a few minutes.

  2. You're finished!

Remove and Deploy the Latest

If you remove the agent and redeploy the latest, you will be able to go through the full agent setup process again.

  1. Navigate to the Heroku agent application and go to the settings tab.

  2. Click Delete app... at the bottom of the page.

  3. Go through the Account Setup once more.