plugin

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PluginID = plugins.PluginID{
		Name:       pluginName,
		PluginType: sdk.PluginTypeAPM,
	}

	PluginConfig = &plugins.InternalPluginConfig{
		Factory: func(l hclog.Logger) interface{} { return NewPrometheusPlugin(l) },
	}
)

Functions

func NewPrometheusPlugin

func NewPrometheusPlugin(log hclog.Logger) apm.APM

Types

type APMPlugin

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

func (*APMPlugin) PluginInfo

func (a *APMPlugin) PluginInfo() (*base.PluginInfo, error)

func (*APMPlugin) Query

func (*APMPlugin) QueryMultiple added in v0.2.0

func (a *APMPlugin) QueryMultiple(q string, r sdk.TimeRange) ([]sdk.TimestampedMetrics, error)

func (*APMPlugin) SetConfig

func (a *APMPlugin) SetConfig(config map[string]string) error

Jump to

Keyboard shortcuts

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