datasource

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataSource

func NewDataSource(opts ...Option) (agent.Datasource, error)

Types

type Config added in v0.0.18

type Config struct {
	Endpoint  string
	BasicAuth string
}

type Option

type Option func(*datasourceBuilder)

func WithCategory added in v0.0.18

func WithCategory(category agent.DatasourceCategory) Option

WithCategory 配置数据源类型

func WithConfig added in v0.0.18

func WithConfig(config *Config) Option

WithConfig 配置数据源

func WithPrometheusConfig

func WithPrometheusConfig(prometheusConfig ...p8s.Option) Option

WithPrometheusConfig prometheus配置

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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