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
Copy file name to clipboardExpand all lines: exporter/sumologicexporter/README.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,14 @@ Empty string means no compression
12
12
-`log_format` (optional) (logs only): Format to use when sending logs to Sumo. (default `json`) (possible values: `json`, `text`)
13
13
-`metric_format` (optional) (metrics only): Format of the metrics to be sent (default is `prometheus`) (possible values: `carbon2`, `graphite`, `prometheus`).
14
14
-`graphite_template` (default=`%{_metric_}`) (optional) (metrics only): Template for Graphite format.
15
-
Placeholders `%{attr_name}` will be replaced with attribute value for `attr_name`. `%{_metric_}` is going to be replaced with metric name.
15
+
[Source templates](#source-templates) are going to be applied.
16
16
Applied only if `metric_format` is set to `graphite`.
17
17
-`source_category` (optional): Desired source category. Useful if you want to override the source category configured for the source.
18
-
Placeholders `%{attr_name}` will be replaced with attribute value for `attr_name`.
18
+
[Source templates](#source-templates) are going to be applied.
19
19
-`source_name` (optional): Desired source name. Useful if you want to override the source name configured for the source.
20
-
Placeholders `%{attr_name}` will be replaced with attribute value for `attr_name`.
20
+
[Source templates](#source-templates) are going to be applied.
21
21
-`source_host` (optional): Desired host name. Useful if you want to override the source host configured for the source.
22
-
Placeholders `%{attr_name}` will be replaced with attribute value for `attr_name`.
22
+
[Source templates](#source-templates) are going to be applied.
23
23
-`timeout` (default = 5s): Is the timeout for every attempt to send data to the backend.
24
24
Maximum connection timeout is 55s.
25
25
-`retry_on_failure`
@@ -35,7 +35,15 @@ Maximum connection timeout is 55s.
35
35
-`num_seconds` is the number of seconds to buffer in case of a backend outage
36
36
-`requests_per_second` is the average number of requests per seconds.
37
37
38
-
Example:
38
+
## Source Templates
39
+
40
+
You can specify a template with an attribute for `source_category`, `source_name`, `source_host` or `graphite_template` using `%{attr_name}`.
41
+
42
+
For example, when there is an attribute `my_attr`: `my_value`, `metrics/%{my_attr}` would be expanded to `metrics/my_value`.
43
+
44
+
For `graphite_template`, in addition to above, `%{_metric_}` is going to be replaced with metric name.
0 commit comments