The Datadog Check Toolkit
Project description
Datadog Checks Base
Overview
This package provides the Python bits needed by the Datadog Agent to run Agent-based Integrations (also known as Checks).
This Check toolkit is used in two scenarios:
-
When used from within the Python interpreter embedded in the Agent, it provides all the base classes and utilities needed by any Check.
-
When installed in a local environment with a regular Python interpreter, it mocks the presence of a running Agent so checks can work in standalone mode, mostly useful for testing and development.
Installation
Checks from integrations-core already use the toolkit in a transparent way when you run the tests with Tox but you can install the toolkit locally and play with it:
pip install git+https://github.com/DataDog/datadog-agent-tk.git
Development
Create a dedicated virtualenv and follow the instructions in this paragraph to work with the check.
To install the check in dev mode:
pip install -e .[dev]
To build the wheel package:
python setup.py bdist_wheel
To run the tests, install tox and just run:
tox
Troubleshooting
Need help? Contact Datadog Support.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for datadog_checks_base-4.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff0c8eaec1a2c8fcc935e298e507c4557049241251801460fedccfcd92836c3e |
|
MD5 | 15c298f0d25cfa191893964e77188241 |
|
BLAKE2b-256 | d0d275cb262878def2ff1185d143cff7832b8f21a315560ac1d440dba57818a1 |