prometheus

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "prometheus"
)

Variables

This section is empty.

Functions

func Check

func Check(v *Config, workers map[eosc.RequireId]eosc.IWorker) error

func Create

func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	Output  []eosc.RequireId `json:"output" skill:"github.com/eolinker/apinto/metric-entry.metric-entry.IMetrics" label:"prometheus Output列表"`
	Metrics []string         `json:"metrics" yaml:"metrics" label:"指标名列表"`
}

type Factory

type Factory struct {
	eosc.IExtenderDriverFactory
}

func NewFactory

func NewFactory() *Factory

func (*Factory) Create

func (f *Factory) Create(profession string, name string, label string, desc string, params map[string]interface{}) (eosc.IExtenderDriver, error)

Jump to

Keyboard shortcuts

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