GithubHelp home page GithubHelp logo

doytsujin / consul2dogstats Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zendesk/consul2dogstats

0.0 1.0 0.0 156 KB

Publish consul service counts into Datadog via dogstatsd

License: Other

Makefile 3.39% Go 96.61%

consul2dogstats's Introduction

consul2dogstats

Build Status codecov

consul2dogstats collects counts of Consul services by service name, status and tag, and publishes them to Datadog under the name consul.service.count.

How to build

Just run make bin to make the program. It will be placed in bin/consul2dogstats.

You can set the GOOS and GOARCH environment variables to cross-compile for a foreign platform if you prefer. See https://golang.org/doc/install/source#environment for details on the permitted values.

Configuration

The following environment variables can be used to configure consul2dogstats:

  • DATADOG_API_KEY (required): Your Datadog API key.
  • STATSD_ADDR: Address of the local dogstatsd instance. Default: 127.0.0.1:8125
  • C2D_LOCK_PATH: Consul key to use for mutex. Default: consul2dogstats/.lock
  • C2D_COLLECT_INTERVAL: Amount of time between each collection, expressed as a Go duration string. Default: 10s
  • CONSUL_HTTP_ADDR: The address of the Consul agent (default: 127.0.0.1:8500)
  • CONSUL_HTTP_SSL: If set, connect to the server using TLS (default: unset/no TLS)
  • CONSUL_HTTP_TOKEN: The API token used to authenticate to the Consul agent (optional, default: none)
  • CONSUL_CACERT: Path to CA file to use for talking to Consul over TLS (default: none)
  • CONSUL_CAPATH: Path to a directory of CA certs to use for talking to Consul over TLS (default: none)
  • CONSUL_CLIENT_CERT: Path to a client cert file to use for talking to Consul over TLS (default: none)
  • CONSUL_CLIENT_KEY: Path to a client key file to use for talking to Consul over TLS (default: none)
  • CONSUL_TLS_SERVER_NAME: Server name to use as the SNI host when connecting via TLS (default: none)
  • CONSUL_HTTP_SSL_VERIFY: If set to 0, disable TLS certificate verification (default: unset; perform verification)

Development

Run make test to run all tests.

consul2dogstats's People

Contributors

mfischer-zd avatar jonmoter 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.