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 ¶
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 */ NoStaleMarkers bool `` /* 359-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 pipeline.Context) (int, error)
func (*ServiceStaticPrometheus) Start ¶
func (p *ServiceStaticPrometheus) Start(c pipeline.Collector) error
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
Click to show internal directories.
Click to hide internal directories.