Documentation ¶
Index ¶
Constants ¶
View Source
const LOG_ENTRIES_CHAN_SIZE = 5000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶ added in v1.0.1
type Client ¶
type Client interface { Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Shutdown() }
func NewClientJson ¶
func NewClientJson(conf ClientConfig) (Client, error)
func NewClientProto ¶
func NewClientProto(conf ClientConfig) (Client, error)
type ClientConfig ¶
type ClientConfig struct { // E.g. http://localhost:3100/api/prom/push PushURL string // E.g. "{job=\"somejob\"}" Labels string BatchWait time.Duration BatchEntriesNumber int Auth AuthConfig OrgID string }
Click to show internal directories.
Click to hide internal directories.