Giter Club home page Giter Club logo

datadog-akamai-custom-integration's Introduction

Requirements | Datadog Setup | Configuration

DataDog & Akamai Custom Integration

Akamai has an out of the box solution that integrates with DataDog called DataStream. However, sometimes a more custom approach is needed based on different use cases such as aggregated metrics from real-time Akamai's Media Delivery Reports for AMD.

The purpose of this Python script is to collect metrics by running API calls to Akamai's Media Delivery Reports for AMD (any other API endpoint for any other product can be used) and send them to DataDog by using their agent.

Requirements

  1. Datadog account with access to metrics and logs
  2. Datadog Agent installed and configured
  3. Python and all the dependencies

Datadog Agent

The Datadog Agent is a software that runs on any host. It collects logs, events and metrics from the host and sends them to Datadog. We use the Agent in this integration to forward the metrics obtained from the Akamai API response to Datadog’s “Metrics” endpoint. The usage of the Agent also ensures that the integration will include built-in resilience techniques to connect to the Datadog endpoint. More information available here

Datadog Metrics Endpoint

The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. It is expected that all the metrics available with the Akamai Media Delivery API’s will be tagged and posted to the metrics endpoint for building "Dashboards" for visualization. More information available here

Datadog Logs Endpoint

Additionally, it is highly recommended to format and save the API responses for logging. The logs end-point allows you to post logs which can be monitored in the Datadog Dashboards. More information here

Configuration (Specific to the Media Reporting API)

  1. Edit the cpcodes variable value to your own. The type of the value must be an array. For example:
    cpcodes = ["00000", "11111"]
  1. Edit the dimension and metrics IDs by modifying the dimensions and metrics variable values.

Cron Job

You want the metrics to be collected periodically. For AMD's Media Delivery Report the maximum granularity if 5 minutes. Therefore a cron job that runs every 5 minutes must be installed.

*/5 * * * * /apps/datadog-akamai-metrics-and-logs.py

datadog-akamai-custom-integration's People

Contributors

jaescalo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.