Status | |
---|---|
Stability | development: metrics, logs |
Distributions | [] |
Issues | |
Code Owners | @AkhigbeEromo |
This exporter supports sending metrics to Sematext Cloud in Influx line protocol format and logs using the Bulk Index Api format.
The following configuration options are supported:
timeout
(default = 5s) Timeout for requestssending_queue
details hereenabled
(default = true)num_consumers
(default = 10) The number of consumers from the queuequeue_size
(default = 1000) Maximum number of batches allowed in queue at a given time
retry_on_failure
details hereenabled
(default = true)initial_interval
(default = 5s) Time to wait after the first failure before retryingmax_interval
(default = 30s) Upper bound on backoff intervalmax_elapsed_time
(default = 120s) Maximum amount of time (including retries) spent trying to send a request/batch
region
Region specifies the Sematext region the user is operating in; must be one of:US
EU
metrics.app_token
specifies the token of the Sematext Monitoring App to which metrics data will be sent. It must be a valid UUID string in the formatxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
. For example:2046e37c-4fac-45f6-831d-922d43fde759
.metrics.payload_max_lines
(default = 1_000) Maximum number of lines allowed per HTTP POST requestmetrics.payload_max_bytes
(default = 300_000) Maximum number of bytes allowed per HTTP POST request
The full list of settings exposed for this exporter are documented in config.go.
Example:
timeout: 500ms
sending_queue:
enabled: true
num_consumers: 3
queue_size: 10
retry_on_failure:
enabled: true
initial_interval: 1s
max_interval: 3s
max_elapsed_time: 10s
region: US
metrics:
app_token: 2064e37c-4fac-45f6-831d-922d43fde759
payload_max_lines: 100
payload_max_bytes: 1000