Giter VIP home page Giter VIP logo

datadog-nginx-forward-proxy's Introduction

Nginx forward proxy for Datadog agent

If your network configuration restrict outbound traffic you can proxy all the outbound traffic through a web proxy, for example nginx. This repository includes a working example of a nginx forwarder proxy that you can configure your Datadog agent to use.

Build and run the docker image

The dockerfile in this repository is using nginx with the ngx_http_proxy_connect_module, the nginx.conf only allows outbound traffic to datadog domains *.datadoghq.eu and *.datadoghq.com, it also blocks all outgoing traffic to other domains by default.

  1. Build the image docker build -t datadog-nginx-forward-proxy .

  2. Run the container docker run -d p 8888:8888 datadog-nginx-forward-proxy

Configure your Datadog agent to use the proxy

Traditional web proxies are supported natively by the Datadog agent. If you need to connect to the Internet through a proxy, edit your agent configuration file datadog.yaml to include:

proxy:
    https: "http://<PROXY_SERVER>:8888"
    http: "http://<PROXY_SERVER>:8888"

See Datadog's official documentation for additional information.

Credits

Thanks goes to these wonderful people:

datadog-nginx-forward-proxy's People

Contributors

misiupajor avatar

Stargazers

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