@@ -21,6 +21,10 @@ gc-interval = 1h
21
21
# in clusters, best to assure the primary has saved all the data that a newly warmup instance will need to query, to prevent gaps in charts
22
22
warm-up-period = 1h
23
23
24
+ # org Id for publically (any org) accessible data
25
+ # leave at 0 to disable.
26
+ public-org = 0
27
+
24
28
# # metric data storage in cassandra ##
25
29
26
30
# see https://github.com/grafana/metrictank/blob/master/docs/cassandra.md for more details
@@ -39,7 +43,7 @@ cassandra-consistency = one
39
43
# tokenaware,hostpool-epsilon-greedy : prefer host that has the needed data, fallback to hostpool-epsilon-greedy.
40
44
cassandra-host-selection-policy = tokenaware,hostpool-epsilon-greedy
41
45
# cassandra timeout in milliseconds
42
- cassandra-timeout = 30000
46
+ cassandra-timeout = 10000
43
47
# max number of concurrent reads to cassandra
44
48
cassandra-read-concurrency = 20
45
49
# max number of concurrent writes to cassandra
@@ -49,16 +53,17 @@ cassandra-read-queue-size = 200000
49
53
# write queue size per cassandra worker. should be large engough to hold all at least the total number of series expected, divided by how many workers you have
50
54
cassandra-write-queue-size = 100000
51
55
# how many times to retry a query before failing it
52
- cassandra-retries = 2
56
+ cassandra-retries = 0
53
57
# CQL protocol version. cassandra 3.x needs v3 or 4.
54
58
cql-protocol-version = 4
55
59
# enable the creation of the mdata keyspace and tables, only one node needs this
56
60
cassandra-create-keyspace = true
57
-
61
+ # File containing the needed schemas in case database needs initializing
62
+ cassandra-schema-file = /etc/metrictank/schema-store-cassandra.toml
58
63
# enable SSL connection to cassandra
59
64
cassandra-ssl = false
60
65
# cassandra CA certficate path when using SSL
61
- cassandra-ca-path =
66
+ cassandra-ca-path = /etc/metrictank/ca.pem
62
67
# host (hostname and server cert) verification when using SSL
63
68
cassandra-host-verification = true
64
69
# enable cassandra user authentication
@@ -68,7 +73,7 @@ cassandra-username = cassandra
68
73
# password for authentication
69
74
cassandra-password = cassandra
70
75
# instruct the driver to not attempt to get host info from the system.peers table
71
- cassandra-disable-initial-host-lookup = true
76
+ cassandra-disable-initial-host-lookup = false
72
77
73
78
# # Profiling and logging ##
74
79
@@ -94,6 +99,8 @@ log-level = 2
94
99
tracing-enabled = false
95
100
# address of the jaeger agent to send data to
96
101
tracing-addr = localhost:6831
102
+ # tracer/process-level tags to include, specified as comma-separated key:value pairs
103
+ tracing-add-tags =
97
104
98
105
# # Retention settings ##
99
106
[retention]
@@ -110,7 +117,7 @@ enabled = true
110
117
# The default matches what the Grafana dashboard expects
111
118
# $instance will be replaced with the `instance` setting.
112
119
# note, the 3rd word describes the environment you deployed in.
113
- prefix = metrictank.stats.docker-dev-custom-cfg-kafka .$instance
120
+ prefix = metrictank.stats.docker-env .$instance
114
121
# graphite address
115
122
addr = localhost:2003
116
123
# interval at which to send statistics
@@ -173,7 +180,9 @@ partition = 0
173
180
174
181
# ## kafka-mdm input (optional, recommended)
175
182
[kafka-mdm-in]
176
- enabled = true
183
+ enabled = false
184
+ # For incoming MetricPoint messages without org-id, assume this org id
185
+ org-id = 0
177
186
# tcp address (may be given multiple times as a comma-separated list)
178
187
brokers = kafka:9092
179
188
# kafka topic (may be given multiple times as a comma-separated list)
@@ -190,7 +199,7 @@ offset-commit-interval = 5s
190
199
# it will be created (incl parent dirs) if not existing.
191
200
data-dir = /var/lib/metrictank
192
201
# The number of metrics to buffer in internal and external channels
193
- channel-buffer-size = 1000000
202
+ channel-buffer-size = 1000
194
203
# The minimum number of message bytes to fetch in a request
195
204
consumer-fetch-min = 1
196
205
# The default number of message bytes to fetch in a request
@@ -268,7 +277,7 @@ dns-config-path = /etc/resolv.conf
268
277
# # clustering transports for tracking chunk saves between replicated instances ##
269
278
# ## kafka as transport for clustering messages (recommended)
270
279
[kafka-cluster]
271
- enabled = true
280
+ enabled = false
272
281
# tcp address (may be given multiple times as a comma-separated list)
273
282
brokers = kafka:9092
274
283
# kafka topic (only one)
@@ -320,7 +329,7 @@ protocol-version = 4
320
329
# write consistency (any|one|two|three|quorum|all|local_quorum|each_quorum|local_one
321
330
consistency = one
322
331
# cassandra request timeout
323
- timeout = 30s
332
+ timeout = 10s
324
333
# number of concurrent connections to cassandra
325
334
num-conns = 10
326
335
# Max number of metricDefs allowed to be unwritten to cassandra
@@ -336,7 +345,7 @@ update-interval = 4h
336
345
# enable SSL connection to cassandra
337
346
ssl = false
338
347
# cassandra CA certficate path when using SSL
339
- ca-path =
348
+ ca-path = /etc/metrictank/ca.pem
340
349
# host (hostname and server cert) verification when using SSL
341
350
host-verification = true
342
351
# enable cassandra user authentication
@@ -347,8 +356,10 @@ username = cassandra
347
356
password = cassandra
348
357
# enable the creation of the index keyspace and tables, only one node needs this
349
358
create-keyspace = true
359
+ # File containing the needed schemas in case database needs initializing
360
+ schema-file = /etc/metrictank/schema-idx-cassandra.toml
350
361
# instruct the driver to not attempt to get host info from the system.peers table
351
- disable-initial-host-lookup = true
362
+ disable-initial-host-lookup = false
352
363
353
364
# ## in-memory only
354
365
[memory-idx]
0 commit comments