Daniel Jaglowski 40b485f08a Update core for v0.90.0 release (#29539) | 1 год назад | |
---|---|---|
.. | ||
internal | 1 год назад | |
testdata | 1 год назад | |
Makefile | 1 год назад | |
README.md | 1 год назад | |
alertmanager_exporter.go | 1 год назад | |
config.go | 1 год назад | |
config_test.go | 1 год назад | |
doc.go | 1 год назад | |
factory.go | 1 год назад | |
factory_test.go | 1 год назад | |
go.mod | 1 год назад | |
go.sum | 1 год назад | |
metadata.yaml | 1 год назад |
Status | |
---|---|
Stability | development: traces |
Distributions | contrib |
Issues | |
Code Owners | @jpkrohling, @sokoide, @mcube8 |
Exports OTEL Events (SpanEvent in Tracing added by AddEvent API) as Alerts to Alertmanager back-end to notify Errors or Change events.
Supported pipeline types: traces
The following settings are required:
endpoint
: Alertmanager endpoint to send eventsseverity
(default info): Default severity for AlertsThe following settings are optional:
timeout
sending_queue
and retry_on_failure
settings as provided by Exporter Helpergenerator_url
is the source of the alerts to be used in Alertmanager's payload. The default value is "opentelemetry-collector", and can be set to the URL of the opentelemetry collector.severity_attribute
is the spanevent Attribute name which can be used instead of default severity string in Alert payload
eg: If severity_attribute is set to "foo" and the SpanEvent has an attribute called foo, foo's attribute value will be used as the severity value for that particular Alert generated from the SpanEvent.Example config:
exporters:
alertmanager:
alertmanager/2:
endpoint: "https://a.new.alertmanager.target:9093"
severity: "debug"
severity_attribute: "foo"
tls:
cert_file: /var/lib/mycert.pem
key_file: /var/lib/key.pem
timeout: 10s
sending_queue:
enabled: true
num_consumers: 2
queue_size: 10
retry_on_failure:
enabled: true
initial_interval: 10s
max_interval: 60s
max_elapsed_time: 10m
generator_url: "opentelemetry-collector"