Skip to main content

DataDog Metrics Collector decorator(s)

Project description

datadog-metrics decorator

A python decorator that handles DataDog Metrics API calls.

Usage

@DDMetrics.send(my_token)
def get_my_metric(x):
    # 1. get metric data and build the metric payload
    metric = [
        {
            "metric": "something",
            "points": [[time(), 55]],
            "tags": ['test1', 'test2']
        }
    ]
    # 2. return it
    return metric

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ddmetrics-0.0.1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

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