Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit 74be242

Browse files
author
woodsaj
committed
bring docker-cosmosdb/metrictank.ini up to date
1 parent 62663ef commit 74be242

File tree

2 files changed

+29
-12
lines changed

2 files changed

+29
-12
lines changed

docker/docker-cosmosdb/docker-compose.yml

+6
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,20 @@ services:
1717
WAIT_TIMEOUT: 60
1818
MT_STATS_ADDR: graphite:2003
1919
MT_CASSANDRA_ADDRS: <addr>
20+
MT_CASSANDRA_TIMEOUT: 30000
2021
MT_CASSANDRA_SSL: "true"
22+
MT_CASSANDRA_CA_PATH: ""
2123
MT_CASSANDRA_HOST_VERIFICATION: "false"
24+
MT_CASSANDRA_DISABLE_INITIAL_HOST_LOOKUP: "true"
2225
MT_CASSANDRA_AUTH: "true"
2326
MT_CASSANDRA_USERNAME: <user>
2427
MT_CASSANDRA_PASSWORD: <pass>
2528
MT_CASSANDRA_IDX_HOSTS: <addr>
29+
MT_CASSANDRA_IDX_TIMEOUT: "30s"
30+
MT_CASSANDRA_IDX_DISABLE_INITIAL_HOST_LOOKUP: "true"
2631
MT_CASSANDRA_IDX_NUM_CONNS: 1
2732
MT_CASSANDRA_IDX_SSL: "true"
33+
MT_CASSANDRA_IDX_CA_PATH: ""
2834
MT_CASSANDRA_IDX_HOST_VERIFICATION: "false"
2935
MT_CASSANDRA_IDX_AUTH: "true"
3036
MT_CASSANDRA_IDX_USERNAME: <user>

docker/docker-cosmosdb/metrictank.ini

+23-12
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ gc-interval = 1h
2121
# 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
2222
warm-up-period = 1h
2323

24+
# org Id for publically (any org) accessible data
25+
# leave at 0 to disable.
26+
public-org = 0
27+
2428
## metric data storage in cassandra ##
2529

2630
# see https://github.com/grafana/metrictank/blob/master/docs/cassandra.md for more details
@@ -39,7 +43,7 @@ cassandra-consistency = one
3943
# tokenaware,hostpool-epsilon-greedy : prefer host that has the needed data, fallback to hostpool-epsilon-greedy.
4044
cassandra-host-selection-policy = tokenaware,hostpool-epsilon-greedy
4145
# cassandra timeout in milliseconds
42-
cassandra-timeout = 30000
46+
cassandra-timeout = 10000
4347
# max number of concurrent reads to cassandra
4448
cassandra-read-concurrency = 20
4549
# max number of concurrent writes to cassandra
@@ -49,16 +53,17 @@ cassandra-read-queue-size = 200000
4953
# 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
5054
cassandra-write-queue-size = 100000
5155
# how many times to retry a query before failing it
52-
cassandra-retries = 2
56+
cassandra-retries = 0
5357
# CQL protocol version. cassandra 3.x needs v3 or 4.
5458
cql-protocol-version = 4
5559
# enable the creation of the mdata keyspace and tables, only one node needs this
5660
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
5863
# enable SSL connection to cassandra
5964
cassandra-ssl = false
6065
# cassandra CA certficate path when using SSL
61-
cassandra-ca-path =
66+
cassandra-ca-path = /etc/metrictank/ca.pem
6267
# host (hostname and server cert) verification when using SSL
6368
cassandra-host-verification = true
6469
# enable cassandra user authentication
@@ -68,7 +73,7 @@ cassandra-username = cassandra
6873
# password for authentication
6974
cassandra-password = cassandra
7075
# 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
7277

7378
## Profiling and logging ##
7479

@@ -94,6 +99,8 @@ log-level = 2
9499
tracing-enabled = false
95100
# address of the jaeger agent to send data to
96101
tracing-addr = localhost:6831
102+
# tracer/process-level tags to include, specified as comma-separated key:value pairs
103+
tracing-add-tags =
97104

98105
## Retention settings ##
99106
[retention]
@@ -110,7 +117,7 @@ enabled = true
110117
# The default matches what the Grafana dashboard expects
111118
# $instance will be replaced with the `instance` setting.
112119
# 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
114121
# graphite address
115122
addr = localhost:2003
116123
# interval at which to send statistics
@@ -173,7 +180,9 @@ partition = 0
173180

174181
### kafka-mdm input (optional, recommended)
175182
[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
177186
# tcp address (may be given multiple times as a comma-separated list)
178187
brokers = kafka:9092
179188
# kafka topic (may be given multiple times as a comma-separated list)
@@ -190,7 +199,7 @@ offset-commit-interval = 5s
190199
# it will be created (incl parent dirs) if not existing.
191200
data-dir = /var/lib/metrictank
192201
# The number of metrics to buffer in internal and external channels
193-
channel-buffer-size = 1000000
202+
channel-buffer-size = 1000
194203
# The minimum number of message bytes to fetch in a request
195204
consumer-fetch-min = 1
196205
# The default number of message bytes to fetch in a request
@@ -268,7 +277,7 @@ dns-config-path = /etc/resolv.conf
268277
## clustering transports for tracking chunk saves between replicated instances ##
269278
### kafka as transport for clustering messages (recommended)
270279
[kafka-cluster]
271-
enabled = true
280+
enabled = false
272281
# tcp address (may be given multiple times as a comma-separated list)
273282
brokers = kafka:9092
274283
# kafka topic (only one)
@@ -320,7 +329,7 @@ protocol-version = 4
320329
# write consistency (any|one|two|three|quorum|all|local_quorum|each_quorum|local_one
321330
consistency = one
322331
# cassandra request timeout
323-
timeout = 30s
332+
timeout = 10s
324333
# number of concurrent connections to cassandra
325334
num-conns = 10
326335
# Max number of metricDefs allowed to be unwritten to cassandra
@@ -336,7 +345,7 @@ update-interval = 4h
336345
# enable SSL connection to cassandra
337346
ssl = false
338347
# cassandra CA certficate path when using SSL
339-
ca-path =
348+
ca-path = /etc/metrictank/ca.pem
340349
# host (hostname and server cert) verification when using SSL
341350
host-verification = true
342351
# enable cassandra user authentication
@@ -347,8 +356,10 @@ username = cassandra
347356
password = cassandra
348357
# enable the creation of the index keyspace and tables, only one node needs this
349358
create-keyspace = true
359+
# File containing the needed schemas in case database needs initializing
360+
schema-file = /etc/metrictank/schema-idx-cassandra.toml
350361
# 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
352363

353364
### in-memory only
354365
[memory-idx]

0 commit comments

Comments
 (0)