mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-18 22:52:11 +01:00
a393b993d6
… not successfully written into remoteWrite url
address https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6512
(cherry picked from commit bc37b279aa
)
16 lines
479 B
Go
16 lines
479 B
Go
package remotewrite
|
|
|
|
import (
|
|
"github.com/VictoriaMetrics/VictoriaMetrics/lib/prompbmarshal"
|
|
)
|
|
|
|
// RWClient represents an HTTP client for pushing data via remote write protocol
|
|
type RWClient interface {
|
|
// Push pushes the give time series to remote storage
|
|
Push(s prompbmarshal.TimeSeries) error
|
|
// Close stops the client. Client can't be reused after Close call.
|
|
Close() error
|
|
// CloseAndReport stops the client and reports dropped rows
|
|
CloseAndReport() (int64, error)
|
|
}
|