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 package 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.
Please refer to the docs for details.
Installation
Checks from integrations-core already use the toolkit in a transparent way when you run the tests but you can install the toolkit locally and play with it:
pip install datadog-checks-base
Performance Optimizations
We strive to balance lean resource usage with a "batteries included" user experience. We employ a few tricks to achieve this.
One of them is the lazy-loader library that allows us to expose a nice API (simple, short imports) without the baseline memory overhead of importing everything all the time.
Another trick is to import some of our dependencies inside functions that use them instead of the more conventional import section at the top of the file. We rely on this the most in the AgentCheck base class.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datadog_checks_base-37.30.0-py2.py3-none-any.whl.
File metadata
- Download URL: datadog_checks_base-37.30.0-py2.py3-none-any.whl
- Upload date:
- Size: 280.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc49a0e32c5f5757d6706fed6ccc13197861f4775d2982e227e7ae4e93e7c6c9
|
|
| MD5 |
cc7d2152faa3a963176f9694a1c0fa84
|
|
| BLAKE2b-256 |
0da041b952b2e0aa6bf03ef5f1b8f8f9dbe107d81ed32c0f87f268e73be78762
|
Provenance
The following attestation bundles were made for datadog_checks_base-37.30.0-py2.py3-none-any.whl:
Publisher:
release-base.yml on DataDog/integrations-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datadog_checks_base-37.30.0-py2.py3-none-any.whl -
Subject digest:
dc49a0e32c5f5757d6706fed6ccc13197861f4775d2982e227e7ae4e93e7c6c9 - Sigstore transparency entry: 942077166
- Sigstore integration time:
-
Permalink:
DataDog/integrations-core@47630e872d9258381fd85ee0c675df0a6ea811a0 -
Branch / Tag:
refs/tags/datadog_checks_base-37.30.0 - Owner: https://github.com/DataDog
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-base.yml@47630e872d9258381fd85ee0c675df0a6ea811a0 -
Trigger Event:
push
-
Statement type: