GithubHelp home page GithubHelp logo

isabella232 / datadog-deployer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from binxio/datadog-deployer

0.0 0.0 0.0 34 KB

A simple command line utility to deploy datadog monitors from code.

License: Apache License 2.0

Python 93.07% Makefile 6.93%

datadog-deployer's Introduction

A simple command line utility to deploy datadog monitors from code.

dump

datadog-deployer dump

dumps the current datadog monitor definitions to the filename

Options:
--account TEXT name of the Datadog account.
--filename PATH
 to dump the monitors to.
--help Show this message and exit.

deploy

datadog-deployer deploy

Deploys the datadog monitor definitions from filename. Compares the monitors with the deployed monitors and determines for each monitor whether to insert or update. Monitors defined in datadog which are not in defined in the file are left, unless --force-delete is specified.

Options:
--account TEXT name of the Datadog account.
--filename PATH
 to deploy monitors from.
--verbose showing change details that are applied.
--dry-run only show changes that would be applied.
--force-delete monitors in datadog not defined in the file.
--help Show this message and exit.

Example

Dump the current monitor definitions:

$ datadog-deployer dump --filename dd-monitors.yaml

Update the monitor definitions:

$ datadog-deployer deploy --filename dd-monitors.yaml
INFO: 5 inserts, 1 updates, 2 unmanaged and 33 unchanged.
INFO: "VPN connectivity" not defined in file. use --force-delete to delete.
INFO: "Invalid objects in Oracle" not defined in file. use --force-delete to delete.

If you want to delete unmanaged monitors, type:

$ datadog-deployer deploy --filename dd-monitors.yaml --force-delete
INFO: 0 inserts, 0 updates, 2 deletes and 39 unchanged.

File formats The file ~/.datadog.ini is a Python configuration file from which the Datadog connection parameters are read. At least it will need the api_key and api_app attributes in the section DEFAULT:

[DEFAULT]
api_key=a77aaaaaaaaaaaaaaaaaaaaa
app_key=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

Other attributes you can add are: proxies, api_host, statsd_host, statsd_port, statsd_socket_path, cacert, mute

datadog-deployer's People

Contributors

mvanholsteijn avatar

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.