Code Monkey home page Code Monkey logo

ambassador-datadog-example's Introduction

ambassador-datadog-example

An example application that shows how Ambassador and Datadog work together in an Kubernetes/Openshift environment

Setup

This assumes you have Helm 3 CLI installed in your system

Deploying Ambassador

kubectl apply -f ambassador-deployment/

Deploying Datadog

First, you need to add this repository to your Helm repositories:

helm repo add datadog https://helm.datadoghq.com
helm repo update

In Generic Kubernetes

If you are deploying this in a generic Kubernetes cluster, use the following command:

export DD_API_KEY=<YOUR_DATADOG_API_KEY>
helm install datadog --set datadog.apiKey=$DD_API_KEY datadog/datadog -f datadog-generic-helm-values.yaml --version=2.8.1

This will deploy Datadog with APM and Logging enabled.

In Openshift

If you are deploying this in Openshift, use the following command:

export DD_API_KEY=<YOUR_DATADOG_API_KEY>
helm install datadog --set datadog.apiKey=$DD_API_KEY datadog/datadog -f datadog-openshift-helm-values.yaml --version=2.8.1

This will deploy Datadog with APM and Logging enabled and with an Openshift SCC.

Deploying the Ecommerce app

This will deploy the example Ecommerce application and will create an Ambassador Mapping for its frontend service:

kubectl apply -f ecommerce-app/v1

Setting up Datadog-Ambassador integration

This will enable JSON logging for Envoy and will enable Ambassador's Datadog integration to send traces to Datadog:

kubectl apply -f ambassador-datadog

Restarting the ambassador pod

The Ambassador pod needs restarting for the Tracing object to take effect:

kubectl scale deployment ambassador --replicas=0 -n ambassador
kubectl scale deployment ambassador --replicas=1 -n ambassador

Replaying traffic

Go Replay is an open-source network monitoring tool which can record your live traffic, and use it for shadowing, load testing, monitoring and detailed analysis.

This repository has a Go Replay profile available that navigates around the application. To replay the traffic:

  • Download the latest release of Go Replay for your platform on their releases page.
  • Replay the traffic:
./gor --input-file-loop --input-file requests_0.gor --output-http "<AMBASSADOR_URL>"

ambassador-datadog-example's People

Contributors

arapulido avatar

Stargazers

Ryan MacLean avatar

Watchers

James Cloos avatar  avatar  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.