Code Monkey home page Code Monkey logo

pingdom-python-config's Introduction

Pingdom API

We are using Pingdom API v3 and a python library for v3 pingdomv3. Check management: create, delete, update, list

Uptime Checks

In order to run the scripts you will need an API token from Pingdom. You can create one here or reuse an existing one.

To create or update the checks you will need to make changes to checks folder, export the token and run the script.

$ export PINGDOM_API_TOKEN=
$ python src/configure_checks.py

The checks will be created if they do not exist and the existing checks will be updated with changes made to checks.yaml.

If you wish to cleanup checks not in the checks folder run:

$ python src/configure_checks.py --clean
usage: configure_checks.py [-h] [-c [CLEAN [CLEAN ...]]]

optional arguments:
  -h, --help            show this help message and exit
  -c [CLEAN [CLEAN ...]], --clean [CLEAN [CLEAN ...]]
                        Clean all other checks.

Integrations

To add integrations to checks so that you are alerted in Slack or other such tools you need to create integrations in Pingdom UI. ALternatively you can write your code that does it using the API.

Once you have created the integrations, you need to get the integration id of each integration by selecting the integration in the UI and looking at the URL. It will have the id like so:

https://my.pingdom.com/integrations/settings#integration=107059

Note: Any arrays in the JSON for the checks needs to be converted to a comma-delimmited string, or else it will take only one of the array elements.

pingdom-python-config's People

Contributors

bsgrigorov avatar kpalov avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

kpalov

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.