plugins

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prom

type Prom struct {
	MetricsSet *rkmidprom.MetricsSet
	LabelKeys  []string
	Conf       *PromConfig
}

func NewProm

func NewProm(conf *PromConfig) *Prom

func (*Prom) Initialize

func (p *Prom) Initialize(db *gorm.DB) error

func (*Prom) Name

func (p *Prom) Name() string

type PromConfig

type PromConfig struct {
	Enabled bool   `yaml:"enabled" json:"enabled"`
	DbAddr  string `yaml:"-" json:"-"`
	DbName  string `yaml:"-" json:"-"`
	DbType  string `yaml:"-" json:"-"`
}

Jump to

Keyboard shortcuts

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