From 3bd50fbf51c8964ae24590ba83a37f0af52e59e7 Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 11 Aug 2019 13:08:47 +0800 Subject: [PATCH] add gostatsd --- README.md | 1 + gostatsd/data/gostatsd.toml | 14 ++++++++++++++ gostatsd/docker-compose.yml | 12 ++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 gostatsd/data/gostatsd.toml create mode 100644 gostatsd/docker-compose.yml diff --git a/README.md b/README.md index da80bb7..506474f 100644 --- a/README.md +++ b/README.md @@ -272,6 +272,7 @@ A collection of delicious docker recipes. - [x] mher/flower - [x] ghost - [x] gitlab/gitlab-ce +- [x] atlassianlabs/gostatsd - [x] gliderlabs/logspout - [x] gliderlabs/registrator - [ ] glot diff --git a/gostatsd/data/gostatsd.toml b/gostatsd/data/gostatsd.toml new file mode 100644 index 0000000..4e700bf --- /dev/null +++ b/gostatsd/data/gostatsd.toml @@ -0,0 +1,14 @@ +[graphite] +address = "graphite:2003" +dial_timeout = '5s' +write_timeout = '30s' + +mode = 'tags' + +global_prefix = 'stats' +global_suffix = '' + +prefix_counter = 'counters' +prefix_timer = 'timers' +prefix_gauge = 'gauges' +prefix_sets = 'sets' diff --git a/gostatsd/docker-compose.yml b/gostatsd/docker-compose.yml new file mode 100644 index 0000000..732b695 --- /dev/null +++ b/gostatsd/docker-compose.yml @@ -0,0 +1,12 @@ +gostatsd: + image: atlassianlabs/gostatsd + command: gostatsd --backends=graphite --config-path=/etc/gostatsd/gostatsd.toml + ports: + - "8125:8125/udp" + - "8126:8126/tcp" + - "8181:8181/tcp" + volumes: + - ./data:/etc/gostatsd + external_links: + - graphite_graphite_1:graphite + restart: unless-stopped