Status | |
---|---|
Stability | beta: metrics, logs |
Distributions | contrib |
This exporter supports sending logs and metrics data to Sumo Logic. Traces are exported using native otlphttp exporter as described here
The following configuration options are supported:
endpoint
(required): Unique URL generated for your HTTP Metrics Source. This is the address to send metrics to.compress_encoding
(optional): Compression encoding format, either empty string (""
),gzip
ordeflate
(defaultgzip
). Empty string means no compressionmax_request_body_size
(optional): Max HTTP request body size in bytes before compression (if applied). By default1_048_576
(1MB) is used.metadata_attributes
(optional): List of regexes for attributes which should be send as metadatalog_format
(optional) (logs only): Format to use when sending logs to Sumo. (defaultjson
) (possible values:json
,text
)metric_format
(optional) (metrics only): Format of the metrics to be sent (default isprometheus
) (possible values:carbon2
,graphite
,prometheus
).graphite_template
(default=%{_metric_}
) (optional) (metrics only): Template for Graphite format. Source templates are going to be applied. Applied only ifmetric_format
is set tographite
.source_category
(optional): Desired source category. Useful if you want to override the source category configured for the source. Source templates are going to be applied.source_name
(optional): Desired source name. Useful if you want to override the source name configured for the source. Source templates are going to be applied.source_host
(optional): Desired host name. Useful if you want to override the source host configured for the source. Source templates are going to be applied.timeout
(default = 5s): Is the timeout for every attempt to send data to the backend. Maximum connection timeout is 55s.retry_on_failure
enabled
(default = true)initial_interval
(default = 5s): Time to wait after the first failure before retrying; ignored ifenabled
isfalse
max_interval
(default = 30s): Is the upper bound on backoff; ignored ifenabled
isfalse
max_elapsed_time
(default = 120s): Is the maximum amount of time spent trying to send a batch; ignored ifenabled
isfalse
sending_queue
enabled
(default = false)num_consumers
(default = 10): Number of consumers that dequeue batches; ignored ifenabled
isfalse
queue_size
(default = 1000): Maximum number of batches kept in memory before data; ignored ifenabled
isfalse
; User should calculate this asnum_seconds * requests_per_second
where:num_seconds
is the number of seconds to buffer in case of a backend outagerequests_per_second
is the average number of requests per seconds.
You can specify a template with an attribute for source_category
, source_name
, source_host
or graphite_template
using %{attr_name}
.
For example, when there is an attribute my_attr
: my_value
, metrics/%{my_attr}
would be expanded to metrics/my_value
.
For graphite_template
, in addition to above, %{_metric_}
is going to be replaced with metric name.
exporters:
sumologic:
endpoint: http://localhost:3000
compress_encoding: "gzip"
max_request_body_size: "1_048_576" # 1MB
log_format: "text"
metric_format: "prometheus"
source_category: "custom category"
source_name: "custom name"
source_host: "custom host"
metadata_attributes:
- k8s.*