Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LokiReader ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func NewReader ¶
func NewReader(writer io.Writer, receivedChan chan time.Time, useTLS bool, tlsConfig *tls.Config, caFile, certFile, keyFile string, address string, user string, pass string, tenantID string, queryTimeout time.Duration, labelName string, labelVal string, streamName string, streamValue string, interval time.Duration, queryAppend string, ) (*Reader, error)
func (*Reader) Query ¶
Query will ask Loki for all canary timestamps in the requested timerange. Query blocks if a previous query has failed until the appropriate backoff time has been reached.
func (*Reader) QueryCountOverTime ¶
QueryCountOverTime will ask Loki for a count of logs over the provided range e.g. 5m QueryCountOverTime blocks if a previous query has failed until the appropriate backoff time has been reached.
Click to show internal directories.
Click to hide internal directories.