pushgateway

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	JobName      string
	Labels       map[string]string
	PushGWUrl    string
	PushInterval time.Duration

	// Used to prefix all tags with a custom namespace
	Namespace string
}

Config is the config for the template collector

func NewConfig

func NewConfig(p output.Params) (Config, error)

NewConfig creates a new Config instance from the provided output.Params

type Output

type Output struct {
	output.SampleBuffer
	// contains filtered or unexported fields
}

Output implements the lib.Output interface

func New

func New(p output.Params) (*Output, error)

New creates an instance of the collector

func (*Output) Description

func (o *Output) Description() string

func (*Output) GetLabels

func (o *Output) GetLabels() prometheus.Labels

GetLabels gets labels from the Config

func (*Output) Start

func (o *Output) Start() error

func (*Output) Stop

func (o *Output) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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