mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-11 14:53:49 +00:00
eff940aa76
* vmalert: remove `vmalert_execution_duration_seconds` metric The summary for `vmalert_execution_duration_seconds` metric gives no additional value comparing to `vmalert_iteration_duration_seconds` metric. * vmalert: update config reload success metric properly Previously, if there was unsuccessfull attempt to reload config and then rollback to previous version - the metric remained set to 0. * vmalert: add Grafana dashboard to overview application metrics * docker: include vmalert target into list for scraping * vmalert: extend notifier metrics with addr label The change adds an `addr` label to metrics for alerts_sent and alerts_send_errors to identify which exact address is having issues. The according change was made to vmalert dashboard. * vmalert: update documentation and docker environment for vmalert's dashboard Mention Grafana's dashboard in vmalert's README in a new section #Monitoring. Update docker-compose env to automatically add vmalert's dashboard. Update docker-compose README with additional info about services.
13 lines
376 B
Go
13 lines
376 B
Go
package notifier
|
|
|
|
import "context"
|
|
|
|
// Notifier is a common interface for alert manager provider
|
|
type Notifier interface {
|
|
// Send sends the given list of alerts.
|
|
// Returns an error if fails to send the alerts.
|
|
// Must unblock if the given ctx is cancelled.
|
|
Send(ctx context.Context, alerts []Alert) error
|
|
// Addr returns address where alerts are sent.
|
|
Addr() string
|
|
}
|