prometheus

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// NormalNaN is a quiet NaN. This is also math.NaN().
	NormalNaN uint64 = 0x7ff8000000000001

	// StaleNaN is a signaling NaN, due to the MSB of the mantissa being 0.
	// This value is chosen with many leading 0s, so we have scope to store more
	// complicated values in the future. It is 2 rather than 1 to make
	// it easier to distinguish from the NormalNaN by a human when debugging.
	StaleNaN uint64 = 0x7ff0000000000002
)
View Source
const StaleNan = "__STALE_NAN__"

Variables

This section is empty.

Functions

func IsStaleNaN

func IsStaleNaN(v float64) bool

IsStaleNaN returns true when the provided NaN value is a stale marker.

Types

type ServiceStaticPrometheus

type ServiceStaticPrometheus struct {
	Yaml              string            `` /* 153-byte string literal not displayed */
	ConfigFilePath    string            `comment:"the prometheus configuration path, and the param would be ignored when Yaml param is configured."`
	AuthorizationPath string            `` /* 247-byte string literal not displayed */
	ExtraFlags        map[string]string `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ServiceStaticPrometheus) Description

func (p *ServiceStaticPrometheus) Description() string

func (*ServiceStaticPrometheus) Init

func (p *ServiceStaticPrometheus) Init(context ilogtail.Context) (int, error)

func (*ServiceStaticPrometheus) Start

Start starts the ServiceInput's service, whatever that may be

func (*ServiceStaticPrometheus) Stop

func (p *ServiceStaticPrometheus) Stop() error

Stop stops the services and closes any necessary channels and connections

Jump to

Keyboard shortcuts

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