Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
func NewPrometheus ¶
func NewPrometheus(address string) (p *Prometheus, err error)
func (*Prometheus) PreciseQuery ¶
type Source ¶
type Source interface { // A data source may not implemented this method Query(query string, start time.Time, end time.Time, step time.Duration) (model.Value, error) // A data source must implemented this method // for a non-prometheus data source, it could consider the 'query' as 'name' PreciseQuery(query string, start time.Time, end time.Time) (model.Value, error) }
We support data source types other than prometheus,
but thay need to convert into prometheus-format
Click to show internal directories.
Click to hide internal directories.