Skip to content

Commit afc8210

Browse files
author
a_isachenkov
committed
initial config update, readme update
1 parent c1f2799 commit afc8210

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

Dockerfile

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
FROM node:6
2-
RUN npm install -g [email protected]
3-
RUN npm install -g statsd-[email protected]
4-
RUN mkdir /statsd
5-
RUN echo '{\n\
2+
3+
RUN npm install -g statsd@0.8.0 && npm install -g statsd-[email protected] && npm cache clean --force
4+
RUN mkdir /statsd && echo '{\n\
5+
address: "0.0.0.0", \n\
66
flushInterval: 10000,\n\
7-
percentThreshold: [95, 99],\n\
7+
percentThreshold: [],\n\
88
backends: ["statsd-zabbix-backend"],\n\
99
zabbixHost: "localhost",\n\
1010
}' >> /statsd/config.js
1111

1212
EXPOSE 8125/udp
13+
EXPOSE 8126/tcp
1314

1415
CMD statsd /statsd/config.js

README.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
# docker-statsd-zabbix-backend
1+
## Quick Start
2+
3+
You can run this container by command like:
4+
5+
```sh
6+
docker run -d \
7+
--name statsd \
8+
--restart=always \
9+
-p 8125:8125/udp \
10+
def1ne/docker-statsd-zabbix-backend
11+
```
12+
13+
Or you can run this container with provided config:
14+
15+
```sh
16+
docker run -d \
17+
--name statsd \
18+
--restart=always \
19+
-p 8125:8125/udp \
20+
-v /path/to/config/directory:/statsd \
21+
def1ne/docker-statsd-zabbix-backend
22+
```
23+
24+
2125 - statsd udp port
25+

0 commit comments

Comments
 (0)