Documentation ¶
Index ¶
Constants ¶
View Source
const (
Kind = "PrometheusDatasource"
)
Variables ¶
This section is empty.
Functions ¶
func Prometheus ¶
func Prometheus(options ...Option) datasource.Option
func Selector ¶
func Selector(datasourceName string) *datasource.Selector
Types ¶
type Builder ¶
type Builder struct {
PluginSpec
}
type PluginSpec ¶
type PluginSpec struct { DirectURL string `json:"directUrl,omitempty" yaml:"directUrl,omitempty"` Proxy *http.Proxy `json:"proxy,omitempty" yaml:"proxy,omitempty"` ScrapeInterval model.Duration `json:"scrapeInterval,omitempty" yaml:"scrapeInterval,omitempty"` }
func (*PluginSpec) UnmarshalJSON ¶
func (s *PluginSpec) UnmarshalJSON(data []byte) error
func (*PluginSpec) UnmarshalYAML ¶
func (s *PluginSpec) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.