Skip to main content

Datadog automation tool

Project description

Datadog library and command line tools

Latest PyPI package version libddog tests

libddog lets you define your metrics and dashboards in code and get the full benefit of a programming language to automate your monitoring setup.

First you write the query:

query = (Query("aws.elb.request_count")
        .filter(region="us-east-1")
        .agg("sum").by("availability-zone").as_count()
        .rollup("sum", 5 * 60))

# produces:
#   sum:aws.elb.request_count{region:us-east-1}
#    by {availability-zone}.as_count().rollup(sum, 300)

The query language closely resembles the Datadog syntax, but because it's Python code and not just a string it is validated and known to be well formed at definition time.

Then you define what the graph looks like:

Timeseries(
    title="ELB: total requests by AZ every 5min",
    requests=[
        Request(
            queries=[query],
            display_type=DisplayType.BARS,
        ),
    ],
    size=Size(height=3, width=5),
)

This gives you the widget you want, with all the parameters supported by the Datadog UI.

Learn more in the User guide.

The state of the project

libddog is a young project and currently supports a small but useful subset of dashboard functionality. See the Feature support page for details.

We plan to support more dashboard features over time. We also plan to support monitors.

Want to know what's new in the project? Read the CHANGELOG.

Want to contribute? Start by reading the Maintainer guide.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libddog-0.1.8.post1.tar.gz (104.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libddog-0.1.8.post1-py3-none-any.whl (60.1 kB view details)

Uploaded Python 3

File details

Details for the file libddog-0.1.8.post1.tar.gz.

File metadata

  • Download URL: libddog-0.1.8.post1.tar.gz
  • Upload date:
  • Size: 104.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.10

File hashes

Hashes for libddog-0.1.8.post1.tar.gz
Algorithm Hash digest
SHA256 492e159bb2712bcffd21f7f1251da9797a771f9f9883fc432bb347d3d23c1159
MD5 5021955dbe03ffa8fe5aaa155dd805d4
BLAKE2b-256 c0fd0b4e8dce0cd2fa1c256d04834a74e3c757edf7bde9e86ae2546c21e2b2fe

See more details on using hashes here.

File details

Details for the file libddog-0.1.8.post1-py3-none-any.whl.

File metadata

  • Download URL: libddog-0.1.8.post1-py3-none-any.whl
  • Upload date:
  • Size: 60.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.10

File hashes

Hashes for libddog-0.1.8.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 dea4132d1faff2551619d40200689e139ddf7385c7fee7c3da5c6824a52e511c
MD5 50c6093552ce5b96f18b8ef0515545c3
BLAKE2b-256 9b9d2c9a3e876181a13996b37da8079e014bc0580543e7a95f267593ff92712b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page