Git Product home page Git Product logo

datadog-democode's Introduction

Datadog Metrics Demo Code

This simple script will generate random Datadog metrics for common statsD commands to demo the Sourcegraph Datadog Extension.

Setup

  1. Follow these instructions to setup Datadog's Dogshell to allow sending metrics from your terminal shell: https://docs.datadoghq.com/developers/guide/dogshell-quickly-use-datadog-s-api-from-terminal-shell/

If you don't have a Datadog account yet, sign up on their website.

  1. Clone the repo:

    git clone [email protected]:sourcegraph/datadog-democode.git
    
  2. Setup virtualenv:

    virtualenv --no-site-packages -p `which python3` venv
    source ./venv/bin/activate
    pip install -r requirements.txt
    
  3. Run the script to start generating metrics:

    python gen_some_datadog_metrics.py
    
  4. Activate the Datadog extension.

  5. Open any open source code that generates the following kind of incremental metrics:

    uploaded.file.size
    active.connections
    users.online 
    files.transferred
    page.views
    files.remaining
    guild.messages.create
    guild.messages.delete
    guild.messages.update
    gateway.events.received
    

Based on these metrics, you can setup your Datadog dashboard to look like this: Dashboard example

datadog-democode's People

Contributors

vanesa 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.