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
As many netcat implementations exist, a parameter may be needed to instruct it to close the socket once data is sent. Such param will usually be -q0, -c or -N. Refer to your implementation man page.
36
49
37
50
Get it back with:
38
51
@@ -45,15 +58,37 @@ To test the second store (alone or in conjunction) change the metric path to `te
45
58
Record structure
46
59
----------------
47
60
48
-
The only supported protocol is [line](https://graphite.readthedocs.io/en/latest/feeding-carbon.html#the-plaintext-protocol). The records should follow the structure:
61
+
The only supported protocol is [line](https://graphite.readthedocs.io/en/latest/feeding-carbon.html#the-plaintext-protocol). The records have the structure:
49
62
```
50
63
path.path.path value datetime
51
64
```
52
65
53
66
Config
54
67
------
55
68
56
-
Please refer to the sample configs in the _config_ folder for examples and documentation.
69
+
Please refer to the [sample config](config/config.toml) for examples and documentation.
70
+
71
+
Routing
72
+
-------
73
+
74
+
Is defined in the [rules config](config/rules.toml) that is in turn referred to in the [main config](config/config.toml). This is how it works:
75
+
- routing rules are applied to each incoming record in order;
76
+
- if regex in a rule matches, the record is sent to the clusters in the `clusters` list;
77
+
- if `continue` is `true` continue matching next rules, stop otherwise. `false` is the default;
78
+
- if regex does not match, continue down the list of rules;
79
+
- multiple rules can be matched to each record;
80
+
- each record can be sent to a single cluster at most once. If two rules send it to same cluster, only one instance will be sent;
81
+
- cluster names must be from the set defined in the [clusters config](clonfig/clusters.toml);
82
+
83
+
#### Rewrites
84
+
85
+
Optionally, it is possible to apply the [rewrite rules](config/rewrite.toml). This is how they work:
86
+
87
+
- rewrites are applied before the routing;
88
+
- all rules are applied to each record one-by-one in order. The record may be modified along the way;
89
+
- rule matches if `from` matches;
90
+
- then metric path is rewriten to `to` in place;
91
+
- if `copy` is `true` the original metric is copied and sent directly to be routed skipping the following re-writes. `copy` is `false` be default.
57
92
58
93
Record validation and normalization
59
94
-----------------------------------
@@ -79,7 +114,7 @@ Tags are not supported for now. See https://github.com/bookingcom/nanotube/issue
79
114
Design
80
115
------
81
116
82
-
Please refer to the design doc_docs/design.md_.
117
+
Design details are in the design [doc](docs/design.md).
0 commit comments