Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRemoteStorageDisabled = fmt.Errorf("remote graphite storage is not enabled")
ErrRemoteStorageDisabled is used to prevent remote.Fetch calls when remote storage is disabled
Functions ¶
func Fetch ¶
func Fetch(cfg *Config, target string, from, until int64, allowRealTimeAlerting bool) ([]*target.TimeSeries, error)
Fetch fetches remote metrics and converts them to expected format
func IsRemoteAvailable ¶
IsRemoteAvailable checks if graphite API is available and returns 200 response
Types ¶
type Config ¶
type Config struct { URL string CheckInterval time.Duration Timeout time.Duration User string Password string Enabled bool }
Config represents config from remote storage
type ErrRemoteTriggerResponse ¶
ErrRemoteTriggerResponse is a custom error when remote trigger check fails
func (ErrRemoteTriggerResponse) Error ¶
func (err ErrRemoteTriggerResponse) Error() string
Error is a representation of Error interface method
Click to show internal directories.
Click to hide internal directories.