Skip to content

Instantly share code, notes, and snippets.

@mwarkentin
Last active August 29, 2015 13:57
Show Gist options
  • Save mwarkentin/9906375 to your computer and use it in GitHub Desktop.
Save mwarkentin/9906375 to your computer and use it in GitHub Desktop.
django-watchman blog post
  1. Create a new check in Pingdom
  2. Give it a name that you'll remember, like accounting-watchman
  3. Set your check interval. We recommend 1m or 5m checks.
  4. Plug in the endpoint url, like `https://accounting.waveapps.com/watchman/
  5. Open up Optional Settings. Under Check for string, change the first dropdown to Should not contain, and add "ok": false in the input field
  6. Test your check, and then save it if everything looks good!
  1. Install django-watchman:

    pip install django-watchman

  2. Add watchman to your INSTALLED_APPS setting:

    INSTALLED_APPS = ( ... 'watchman', )

  3. Include the watchman URLconf in your project urls.py:

    url(r'^watchman/', include('watchman.urls')),

  4. Start the development server and visit http://127.0.0.1:8000/watchman/ to get a JSON response of your backing service statuses:

    { "databases": [ { "default": { "ok": true } } ], "caches": [ { "default": { "ok": true } } ] }

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