You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docker/docker-cluster/metrictank.ini
+43-18
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,14 @@ accounting-period = 5min
8
8
9
9
## data ##
10
10
11
-
# see https://github.com/raintank/metrictank/blob/master/docs/data-knobs.md for more details
11
+
# see https://github.com/raintank/metrictank/blob/master/docs/memory-server.md for more details
12
+
12
13
# duration of raw chunks. e.g. 10min, 30min, 1h, 90min...
14
+
# must be valid value as described here https://github.com/raintank/metrictank/blob/master/docs/memory-server.md#valid-chunk-spans
13
15
chunkspan = 10min
14
-
# number of raw chunks to keep in memory. should be at least 1 more than what's needed to satisfy aggregation rules
16
+
# number of raw chunks to keep in in-memory ring buffer
17
+
# See https://github.com/raintank/metrictank/blob/master/docs/memory-server.md for details and trade-offs, especially when compared to chunk-cache
18
+
# (settings further down) which may be a more effective method to cache data and alleviate workload for cassandra.
15
19
numchunks = 7
16
20
# minimum wait before raw metrics are removed from storage
17
21
ttl = 35d
@@ -29,11 +33,15 @@ gc-interval = 1h
29
33
warm-up-period = 1h
30
34
31
35
# settings for rollups (aggregation for archives)
32
-
# comma-separated of archive specifications.
36
+
# comma-separated list of archive specifications.
33
37
# archive specification is of the form: aggSpan:chunkSpan:numChunks:TTL[:ready as bool. default true]
34
-
# with these aggregation rules: 5min:1h:2:3mon,1h:6h:2:1y:false
35
-
# 5 min of data, store in a chunk that lasts 1hour, keep 2 chunks in memory, keep for 3months in cassandra
36
-
# 1hr worth of data, in chunks of 6 hours, 2 chunks in mem, keep for 1 year, but this series is not ready yet for querying.
38
+
# with these aggregation rules: 5min:1h:2:3mon,1h:6h:2:1y:false you get:
39
+
# - 5 min of data, store in a chunk that lasts 1hour, keep 2 chunks in in-memory ring buffer, keep for 3months in cassandra
40
+
# - 1hr worth of data, in chunks of 6 hours, 2 chunks in in-memory ring buffer, keep for 1 year, but this series is not ready yet for querying.
41
+
# When running a cluster of metrictank instances, all instances should have the same agg-settings.
42
+
# Note:
43
+
# * chunk spans must be valid values as described here https://github.com/raintank/metrictank/blob/master/docs/memory-server.md#valid-chunk-spans
44
+
# * numchunks -like the global setting- has nuanced use compared to chunk cache. see https://github.com/raintank/metrictank/blob/master/docs/memory-server.md
# how many messages (holding all measurements from one interval. rule of thumb: a message is ~25kB) to buffer up in case graphite endpoint is unavailable.
126
+
# With the default of 20k you will use max about 500MB and bridge 5 hours of downtime when needed
127
+
buffer-size = 20000
128
+
129
+
## chunk cache ##
130
+
[chunk-cache]
131
+
# maximum size of chunk cache in bytes. (1024 ^ 3) * 4 = 4294967296 = 4G
132
+
max-size = 4294967296
133
+
111
134
## http api ##
112
135
[http]
113
136
# tcp address for metrictank to bind to for its HTTP interface
@@ -132,6 +155,8 @@ log-min-dur = 5min
132
155
enabled = true
133
156
# tcp address
134
157
addr = :2003
158
+
# represents the "partition" of your data if you decide to partition your data.
159
+
partition = 0
135
160
# needed to know your raw resolution for your metrics. see http://graphite.readthedocs.io/en/latest/config-carbon.html#storage-schemas-conf
136
161
# NOTE: does NOT use aggregation and retention settings from this file. We use agg-settings and ttl for that.
Copy file name to clipboardExpand all lines: docker/docker-dev-custom-cfg-kafka/metrictank.ini
+23-12
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,15 @@ accounting-period = 5min
8
8
9
9
## data ##
10
10
11
-
# see https://github.com/raintank/metrictank/blob/master/docs/data-knobs.md for more details
11
+
# see https://github.com/raintank/metrictank/blob/master/docs/memory-server.md for more details
12
+
12
13
# duration of raw chunks. e.g. 10min, 30min, 1h, 90min...
14
+
# must be valid value as described here https://github.com/raintank/metrictank/blob/master/docs/memory-server.md#valid-chunk-spans
13
15
chunkspan = 2min
14
-
# number of raw chunks to keep in memory. should be at least 1 more than what's needed to satisfy aggregation rules
15
-
numchunks = 1
16
+
# number of raw chunks to keep in in-memory ring buffer
17
+
# See https://github.com/raintank/metrictank/blob/master/docs/memory-server.md for details and trade-offs, especially when compared to chunk-cache
18
+
# (settings further down) which may be a more effective method to cache data and alleviate workload for cassandra.
19
+
numchunks = 2
16
20
# minimum wait before raw metrics are removed from storage
17
21
ttl = 35d
18
22
@@ -31,11 +35,13 @@ warm-up-period = 1h
31
35
# settings for rollups (aggregation for archives)
32
36
# comma-separated list of archive specifications.
33
37
# archive specification is of the form: aggSpan:chunkSpan:numChunks:TTL[:ready as bool. default true]
34
-
# with these aggregation rules: 5min:1h:2:3mon,1h:6h:2:1y:false
35
-
# 5 min of data, store in a chunk that lasts 1hour, keep 2 chunks in memory, keep for 3months in cassandra
36
-
# 1hr worth of data, in chunks of 6 hours, 2 chunks in mem, keep for 1 year, but this series is not ready yet for querying.
38
+
# with these aggregation rules: 5min:1h:2:3mon,1h:6h:2:1y:false you get:
39
+
#- 5 min of data, store in a chunk that lasts 1hour, keep 2 chunks in in-memory ring buffer, keep for 3months in cassandra
40
+
#- 1hr worth of data, in chunks of 6 hours, 2 chunks in in-memory ring buffer, keep for 1 year, but this series is not ready yet for querying.
37
41
# When running a cluster of metrictank instances, all instances should have the same agg-settings.
38
-
# chunk spans must be valid values as described here https://github.com/raintank/metrictank/blob/master/docs/data-knobs.md
42
+
# Note:
43
+
# * chunk spans must be valid values as described here https://github.com/raintank/metrictank/blob/master/docs/memory-server.md#valid-chunk-spans
44
+
# * numchunks -like the global setting- has nuanced use compared to chunk cache. see https://github.com/raintank/metrictank/blob/master/docs/memory-server.md
39
45
agg-settings =
40
46
41
47
## metric data storage in cassandra ##
@@ -111,7 +117,7 @@ enabled = true
111
117
# The default matches what the Grafana dashboard expects
112
118
# $instance will be replaced with the `instance` setting.
113
119
# note, the 3rd word describes the environment you deployed in.
Copy file name to clipboardExpand all lines: docs/config.md
+30-17
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,14 @@ accounting-period = 5min
34
34
## data ##
35
35
36
36
```
37
-
# see https://github.com/raintank/metrictank/blob/master/docs/data-knobs.md for more details
37
+
# see https://github.com/raintank/metrictank/blob/master/docs/memory-server.md for more details
38
38
# duration of raw chunks. e.g. 10min, 30min, 1h, 90min...
39
-
chunkspan = 2h
40
-
# number of raw chunks to keep in memory. should be at least 1 more than what's needed to satisfy aggregation rules
41
-
numchunks = 5
39
+
# must be valid value as described here https://github.com/raintank/metrictank/blob/master/docs/memory-server.md#valid-chunk-spans
40
+
chunkspan = 10min
41
+
# number of raw chunks to keep in in-memory ring buffer
42
+
# See https://github.com/raintank/metrictank/blob/master/docs/memory-server.md for details and trade-offs, especially when compared to chunk-cache
43
+
# (settings further down) which may be a more effective method to cache data and alleviate workload for cassandra.
44
+
numchunks = 7
42
45
# minimum wait before raw metrics are removed from storage
43
46
ttl = 35d
44
47
# max age for a chunk before to be considered stale and to be persisted to Cassandra
@@ -54,11 +57,13 @@ warm-up-period = 1h
54
57
# settings for rollups (aggregation for archives)
55
58
# comma-separated list of archive specifications.
56
59
# archive specification is of the form: aggSpan:chunkSpan:numChunks:TTL[:ready as bool. default true]
57
-
# with these aggregation rules: 5min:1h:2:3mon,1h:6h:2:1y:false
58
-
# 5 min of data, store in a chunk that lasts 1hour, keep 2 chunks in memory, keep for 3months in cassandra
59
-
# 1hr worth of data, in chunks of 6 hours, 2 chunks in mem, keep for 1 year, but this series is not ready yet for querying.
60
+
# with these aggregation rules: 5min:1h:2:3mon,1h:6h:2:1y:false you get:
61
+
# - 5 min of data, store in a chunk that lasts 1hour, keep 2 chunks in in-memory ring buffer, keep for 3months in cassandra
62
+
# - 1hr worth of data, in chunks of 6 hours, 2 chunks in in-memory ring buffer, keep for 1 year, but this series is not ready yet for querying.
60
63
# When running a cluster of metrictank instances, all instances should have the same agg-settings.
61
-
# chunk spans must be valid values as described here https://github.com/raintank/metrictank/blob/master/docs/data-knobs.md
64
+
# Note:
65
+
# * chunk spans must be valid values as described here https://github.com/raintank/metrictank/blob/master/docs/memory-server.md#valid-chunk-spans
66
+
# * numchunks -like the global setting- has nuanced use compared to chunk cache. see https://github.com/raintank/metrictank/blob/master/docs/memory-server.md
62
67
agg-settings =
63
68
```
64
69
@@ -144,6 +149,14 @@ interval = 1
144
149
buffer-size = 20000
145
150
```
146
151
152
+
## chunk cache ##
153
+
154
+
```
155
+
[chunk-cache]
156
+
# maximum size of chunk cache in bytes. (1024 ^ 3) * 4 = 4294967296 = 4G
157
+
max-size = 4294967296
158
+
```
159
+
147
160
## http api ##
148
161
149
162
```
@@ -239,7 +252,7 @@ brokers = kafka:9092
239
252
topic = metricpersist
240
253
# kafka partitions to consume. use '*' or a comma separated list of id's. Should match kafka-mdm-in's partitions.
241
254
partitions = *
242
-
# method used for partitioning metrics. This should match the settings of tsdb-gw. One of byOrg|bySeries
255
+
# method used for partitioning metrics. This should match the settings of tsdb-gw. (byOrg|bySeries)
243
256
partition-scheme = bySeries
244
257
# offset to start consuming from. Can be one of newest, oldest,last or a time duration
245
258
offset = last
@@ -272,18 +285,11 @@ max-in-flight = 200
272
285
```
273
286
274
287
## metric metadata index ##
275
-
### in-memory
276
-
277
-
```
278
-
[memory-idx]
279
-
enabled = true
280
-
```
281
-
282
288
### in memory, cassandra-backed
283
289
284
290
```
285
291
[cassandra-idx]
286
-
enabled = false
292
+
enabled = true
287
293
# Cassandra keyspace to store metricDefinitions in.
288
294
keyspace = metrictank
289
295
# comma separated list of cassandra addresses in host:port form
Copy file name to clipboardExpand all lines: docs/consolidation.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ must cleanly multiply between one another (why again?)
108
108
try to minimize storage overhead of each band
109
109
110
110
SPAN CHOICE
111
-
As described in the page [Data knobs](https://github.com/raintank/metrictank/blob/master/docs/data-knobs.md#valid-chunk-spans), only a finite set of values are valid chunk spans. This applies to rolled up chunks as well.
111
+
As described in the page [Memory server](https://github.com/raintank/metrictank/blob/master/docs/memory-server.md#valid-chunk-spans), only a finite set of values are valid chunk spans. This applies to rolled up chunks as well.
112
112
113
113
RETENTION:
114
114
should at the minimum be maxT otherwise what's the point
0 commit comments