forked from go-graphite/gorelka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
g2mt.yaml
88 lines (87 loc) · 2.98 KB
/
g2mt.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
Relay:
Destinations:
local1:
Config:
# Supported: "tcp", "udp", "kafka"
Type: "tcp"
# Supported: "none", "snappy", "gzip"
# Tested: "none"
Compression: "none"
# Supported: "graphite", "json","protobuf"
# graphite - graphite line protocol
# protobuf - graphite's protobuf protocol (see https://github.com/go-graphite/g2mt/blob/master/carbon/carbon.proto for more info)
# json - same format as protobuf messages, but json encoding
Encoding: "graphite"
# Supported: "all", "jump_fnv1a", "fnv1a"
DistributionAlgorithm: "jump_fnv1a"
# Buffered: false
# Used only for kafka or tcp with 'buffered: true'
# FlushFrequency: "200ms"
# Buffer for metrics if upstream is down
ChannelBufferSize: 100000
# CompressionLevel: 3 # Only for gzip
Servers:
- "localhost:2004"
- "localhost:2005"
TLS:
Enable: false
FlushFrequency: "200ms"
ChannelBufferSize: 100000
QueueSize: 1000000
local2:
Config:
Type: "kafka"
# Kafka Version
Version: "0.10.2.0"
# Compression: lz4, snappy, gzip, none
Compression: "lz4"
Encoding: "json"
DistributionAlgorithm: "jump_fnv1a"
# Total number of partitions in cluster, requried for hashing
Shards: 1
# Shard number, starts from 0, up to Shards-1
Partition: 0
RetryMax: 2
# RequiredAcks: false
Brokers:
- "localhost:9092"
Topic: "kafka-topic"
TLS:
Enable: false
SkipInsecureCerts: true
FlushFrequency: 200000000
ChannelBufferSize: 100000
Listeners:
graphite:
Type: "graphite"
SendInterval: "200ms"
AcceptTimeout: "200ms"
Router: "default_relay"
Config:
- Listen: ":12003"
Protocol: "tcp"
Workers: 4
Routers:
default_relay:
Type: "relay"
Config:
Rules:
-
# Regexp: "^some(\.thing)\."
# RewriteTo: "\1."
# SaveOriginalOnRewrite: true
StartsWith: ""
LastIfMatched: true
Blackhole: false
LogOnReceive: true
Destinations:
- "local1"
- "local2"
MaxBatchSize: 500000
TransportWorkers: 6
TransportChanCapacity: 65536
SendInterval: "100ms"
QueueSize: 0
Debug:
Listen: ":6060"