dbi

package
v0.0.0-...-bcbbf8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name of plugin
	Name = "dbi"
	// Version of plugin
	Version = 4
	// Type of plugin
	Type = plugin.CollectorPluginType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DbiPlugin

type DbiPlugin struct {
	// contains filtered or unexported fields
}

DbiPlugin holds information about the configuration database and defined queries

func New

func New() *DbiPlugin

New returns snap-plugin-collector-dbi instance

func (*DbiPlugin) CollectMetrics

func (dbiPlg *DbiPlugin) CollectMetrics(mts []plugin.MetricType) ([]plugin.MetricType, error)

CollectMetrics returns values of desired metrics defined in mts

func (*DbiPlugin) GetConfigPolicy

func (dbiPlg *DbiPlugin) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)

GetConfigPolicy returns config policy

func (*DbiPlugin) GetMetricTypes

func (dbiPlg *DbiPlugin) GetMetricTypes(cfg plugin.ConfigType) ([]plugin.MetricType, error)

GetMetricTypes returns metrics types exposed by snap-plugin-collector-dbi

Directories

Path Synopsis
cfg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL