localhots.xyz graphite-ish / e498db6
Initial commit (carbon is set up) Gregory Eremin 5 years ago
3 changed file(s) with 90 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 FROM ubuntu:14.04
1 MAINTAINER Gregory Eremin <g@erem.in>
2
3 ENV DEBIAN_FRONTEND noninteractive
4 RUN apt-get update && apt-get install -y make git golang
5
6 RUN mkdir /build
7 RUN cd /build && git clone https://github.com/lomik/go-carbon.git
8 WORKDIR /build/go-carbon
9 RUN git checkout v0.7.2
10 RUN make submodules && make
11
12 COPY configs/carbon.toml /etc/carbon.toml
13 COPY configs/storage-schemas.conf /etc/storage-schemas.conf
14 RUN mkdir -p /data/graphite/whisper
15 ENTRYPOINT ./go-carbon -config=/etc/carbon.toml
0 [common]
1 # If logfile is empty use stderr
2 logfile = ""
3 # Logging error level. Valid values: "debug", "info", "warn", "warning", "error"
4 log-level = "info"
5 # Prefix for store all internal go-carbon graphs. Supported macroses: {host}
6 graph-prefix = "carbon.agents.{host}."
7 # Interval of storing internal metrics. Like CARBON_METRIC_INTERVAL
8 metric-interval = "1m0s"
9 # Increase for configuration with multi persisters
10 max-cpu = 1
11
12 [whisper]
13 data-dir = "/data/graphite/whisper/"
14 # http://graphite.readthedocs.org/en/latest/config-carbon.html#storage-schemas-conf. Required
15 schemas-file = "/etc/storage-schemas.conf"
16 # http://graphite.readthedocs.org/en/latest/config-carbon.html#storage-aggregation-conf. Optional
17 aggregation-file = ""
18 # Workers count. Metrics sharded by "crc32(metricName) % workers"
19 workers = 1
20 # Limits the number of whisper update_many() calls per second. 0 - no limit
21 max-updates-per-second = 0
22 # Sparse file creation
23 sparse-create = false
24 enabled = true
25
26 [cache]
27 # Limit of in-memory stored points (not metrics)
28 max-size = 1000000
29 # Capacity of queue between receivers and cache
30 input-buffer = 51200
31
32 [udp]
33 listen = ":2003"
34 enabled = true
35 # Enable optional logging of incomplete messages (chunked by MTU)
36 log-incomplete = false
37
38 [tcp]
39 listen = ":2003"
40 enabled = true
41
42 [pickle]
43 listen = ":2004"
44 enabled = false
45 # Limit message size for prevent memory overflow
46 max-message-size = 67108864
47
48 [carbonlink]
49 listen = "127.0.0.1:7002"
50 enabled = true
51 # Close inactive connections after "read-timeout"
52 read-timeout = "30s"
53 # Return empty result if cache not reply
54 query-timeout = "100ms"
55
56 [pprof]
57 listen = "localhost:7007"
58 enabled = false
0 # Documentation
1 # http://graphite.readthedocs.io/en/latest/config-carbon.html#storage-schemas-conf
2
3 # Carbon metrics are kept for 30 days in resolution of 10 seconds.
4 [carbon]
5 pattern = ^carbon\.
6 retentions = 10s:30d
7
8 # User metrics are kept for:
9 # * 24 hours in resolution of 5 seconds
10 # * 30 days in resolution of 1 minute
11 # * 1 year in resolution of 5 minutes
12 [user]
13 pattern = .*
14 retentions = 5s:24h,1m:30d,5m:1y