Documentation ¶
Index ¶
- Variables
- type Module
- func (m *Module) GetDashboardFiles() map[string][]byte
- func (m *Module) GetDashboards() []map[string]interface{}
- func (m *Module) GetRules(tg string) rulefmt.RuleGroup
- func (m *Module) GetTargets(labels []labels.Labels, group string) ([]labels.Labels, error)
- func (m *Module) HostVars() (map[string]string, error)
- func (m *Module) Playbook(ctx context.Context) (*ansible.Playbook, error)
- type ModuleConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = ModuleConfig{ Enabled: false, EnableExporter: true, NodeExporterVersion: "1.5.0", }
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) GetDashboardFiles ¶ added in v0.0.5
GetDashboardFiles returns included dashboard files
func (*Module) GetDashboards ¶ added in v0.0.5
GetDashboards returns pointers to grafana.com dashboards
func (*Module) GetTargets ¶
type ModuleConfig ¶
type ModuleConfig struct { Enabled bool `yaml:"enabled"` EnableExporter bool `yaml:"enable_exporter"` NodeExporterVersion string `yaml:"node_exporter_version"` }
func (*ModuleConfig) IsEnabled ¶ added in v0.0.5
func (m *ModuleConfig) IsEnabled() bool
IsEnabled returns a boolean indicating if the Module is enabled.
func (*ModuleConfig) Name ¶
func (m *ModuleConfig) Name() string
func (*ModuleConfig) NewModule ¶
func (m *ModuleConfig) NewModule(modules.ModuleOptions) (modules.Module, error)
func (*ModuleConfig) UnmarshalYAML ¶
func (m *ModuleConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.