pythonaws-lambdadatadog

How to create a datadog gauge metric in python Lambda?


We have a Lambda written in Python, and we use datadog-lambda library to report metrics to datadog. Is there a way to create a gauge metric using the above library?


Solution

  • Use datalog_lambda.metric to submit custom metric to Datadog.

    Lil' example:

    from datadog_lambda.metric import lambda_metric
    
    lambda_metric('metric_name', 1, tags=['tag1:value1', 'tag2'])