prometheus

package
v0.58.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: GPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	web.HTTP        `yaml:",inline"`
	Name            string `yaml:"name"`
	Application     string `yaml:"app"`
	BearerTokenFile string `yaml:"bearer_token_file"`

	Selector selector.Expr `yaml:"selector"`

	ExpectedPrefix string `yaml:"expected_prefix"`
	MaxTS          int    `yaml:"max_time_series"`
	MaxTSPerMetric int    `yaml:"max_time_series_per_metric"`
	FallbackType   struct {
		Counter []string `yaml:"counter"`
		Gauge   []string `yaml:"gauge"`
	} `yaml:"fallback_type"`
}

type Prometheus

type Prometheus struct {
	module.Base
	Config `yaml:",inline"`
	// contains filtered or unexported fields
}

func New

func New() *Prometheus

func (*Prometheus) Charts

func (p *Prometheus) Charts() *module.Charts

func (*Prometheus) Check

func (p *Prometheus) Check() bool

func (*Prometheus) Cleanup

func (p *Prometheus) Cleanup()

func (*Prometheus) Collect

func (p *Prometheus) Collect() map[string]int64

func (*Prometheus) Init

func (p *Prometheus) Init() bool

Jump to

Keyboard shortcuts

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