diff --git a/app/vmalert/remotewrite/remotewrite.go b/app/vmalert/remotewrite/remotewrite.go index 716e3aa07..10586b029 100644 --- a/app/vmalert/remotewrite/remotewrite.go +++ b/app/vmalert/remotewrite/remotewrite.go @@ -30,6 +30,7 @@ type Client struct { doneCh chan struct{} } +// Config is config for remote write. type Config struct { // Addr of remote storage Addr string diff --git a/app/vmalert/rule.go b/app/vmalert/rule.go index 1a6a78c91..185705395 100644 --- a/app/vmalert/rule.go +++ b/app/vmalert/rule.go @@ -218,6 +218,7 @@ const ( alertStateLabel = "alertstate" ) +// AlertToTimeSeries converts the given alert with the given timestamp to timeseries func (r *Rule) AlertToTimeSeries(a *notifier.Alert, timestamp time.Time) []prompbmarshal.TimeSeries { var tss []prompbmarshal.TimeSeries tss = append(tss, alertToTimeSeries(r.Name, a, timestamp))