-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SC-20508 Add sematext exporter #2
base: main
Are you sure you want to change the base?
Changes from 1 commit
7be09e3
56075f9
6cad40b
8ed1a5a
af5ba97
6d2eff4
929070f
f958e8f
abf2930
bf6e81b
9d02ad7
2146176
6af2ce6
602ecbf
0290804
b4788ae
649215f
2e17dd5
e358f65
0cac0f9
89713a0
be7f986
d8e5f14
c7fb729
daecc41
683b038
a8346ed
02fec37
a85429a
9317219
1f32a87
8d81a7d
245725c
eeb42af
5d17fd7
b4505b0
98d51f4
1c87f19
fcd0f90
40581e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Sematext Exporter | ||
<!-- status autogenerated section --> | ||
<!-- end autogenerated section --> | ||
|
||
This exporter supports sending metrics to [Sematext Cloud](https://sematext.com/) in Influx line protocol format | ||
|
||
## Configuration | ||
|
||
The following configuration options are supported: | ||
|
||
* `endpoint` (required) HTTP/S destination for metric receivers. It is dependent on the region: | ||
- US: `spm-receiver.sematext.com` | ||
- EU: `spm-receiver.eu.sematext.com` | ||
* `timeout` (default = 5s) Timeout for requests | ||
* `AppToken` App token is the token of Sematext Monitoring App to which you want to send the metrics. | ||
* `Region` Region specifies the Sematext region the user is operating in; must be one of: | ||
Eromosele-SM marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* `US` | ||
* `EU` | ||
* `payload_max_lines` (default = 10_000) Maximum number of lines allowed per HTTP POST request | ||
* `payload_max_bytes` (default = 10_000_000) Maximum number of bytes allowed per HTTP POST request | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Eromosele-SM I'd check these defaults internally with Sematext first. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's the suggest for custom metrics. I'd ask STA devs what STA uses. |
||
* `metrics_schema` (default = telegraf-prometheus-v2) The chosen metrics schema to write; must be one of: | ||
* `otel-v1` | ||
* `telegraf-prometheus-v2` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Eromosele-SM probably only one schema in the end. Also, this Exporter will end up shipping telemetry other than metrics. So maybe you want to structure the README in preparation for that. For example, this particular schema will be only for metrics. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can always edit the readme when we have logs support ready? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ofc. I hope the YAML is also structured in anticipation of Exporter sending other telemetry later (so other App tokens, other endpoints, although the region could probably remain general). |
||
* `sending_queue` [details here](https://github.com/open-telemetry/opentelemetry-collector/blob/v0.25.0/exporter/exporterhelper/README.md#configuration) | ||
* `enabled` (default = true) | ||
* `num_consumers` (default = 10) The number of consumers from the queue | ||
* `queue_size` (default = 1000) Maximum number of batches allowed in queue at a given time | ||
* `retry_on_failure` [details here](https://github.com/open-telemetry/opentelemetry-collector/blob/v0.25.0/exporter/exporterhelper/README.md#configuration) | ||
* `enabled` (default = true) | ||
* `initial_interval` (default = 5s) Time to wait after the first failure before retrying | ||
* `max_interval` (default = 30s) Upper bound on backoff interval | ||
* `max_elapsed_time` (default = 120s) Maximum amount of time (including retries) spent trying to send a request/batch | ||
|
||
The full list of settings exposed for this exporter are documented in [config.go](config.go). | ||
|
||
Example: | ||
```yaml | ||
endpoint: spm-receiver.sematext.com | ||
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 | ||
app_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
metrics_schema: telegraf-prometheus-v2 | ||
payload_max_lines: 100 | ||
payload_max_bytes: 1000 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Eromosele-SM make it match STA timeout?