Documentation
¶
Index ¶
Constants ¶
View Source
const ProtocolVersion = "v1"
ProtocolVersion is the version of the data ingestion protocol.
It must be changed every time the data encoding at /internal/insert HTTP endpoint is changed.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is a network storage for sending data to remote storage nodes in the cluster.
func NewStorage ¶
func NewStorage(addrs []string, authCfgs []*promauth.Config, isTLSs []bool, concurrency int, disableCompression bool) *Storage
NewStorage returns new Storage for the given addrs with the given authCfgs.
The concurrency is the average number of concurrent connections per every addr.
If disableCompression is set, then the data is sent uncompressed to the remote storage.
Call MustStop on the returned storage when it is no longer needed.
Click to show internal directories.
Click to hide internal directories.