prometheus

package
v0.0.0-...-5e8511f Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsedToMetric

func ParsedToMetric(labels map[string]string, raw *io_prometheus_client.MetricFamily) ([]prometheus.Metric, error)

Types

type Config

type Config struct {
	Enabled bool   `yaml:"enabled"`
	Address string `yaml:"address"`
}

func (*Config) Create

func (c *Config) Create() (*Manager, error)

type Manager

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

func (*Manager) Close

func (m *Manager) Close() error

func (*Manager) WrapDB

func (m *Manager) WrapDB(db *gorm.DB) error

func (*Manager) WrapFileInfo

func (m *Manager) WrapFileInfo(fileinfo types.FileInfoProvider, name string) types.FileInfoProvider

func (*Manager) WrapStorage

func (m *Manager) WrapStorage(store storage.StorageProvider, err error) (storage.StorageProvider, error)

Jump to

Keyboard shortcuts

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