Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidLabel = errors.New("invalid labels")
Functions ¶
func NewAppender ¶
NewAppender creates a new Appender that handle a single remote write request. It will enforce some SquirrelDB's features, like: - Enforce tenant Labels when set - Limit concurrent writes This appender should be created HTTP per-request.
Types ¶
type Options ¶
type Options struct {
TenantLabel labels.Label
IgnoreLabelCallback func(ctx context.Context, tenant string, value string) (bool, error)
// IngestedPoints counts points forwarded to the backend (ingress); optional.
IngestedPoints prometheus.Counter
// CommitSeconds observes the backend Commit duration (SquirrelDB<->TSDB write); optional.
CommitSeconds prometheus.Observer
}
Click to show internal directories.
Click to hide internal directories.