Documentation ¶
Index ¶
- Constants
- func IsStaleNaN(v float64) bool
- type ServiceStaticPrometheus
- func (p *ServiceStaticPrometheus) Collect(ilogtail.Collector) error
- func (p *ServiceStaticPrometheus) Description() string
- func (p *ServiceStaticPrometheus) Init(context ilogtail.Context) (int, error)
- func (p *ServiceStaticPrometheus) Start(c ilogtail.Collector) error
- func (p *ServiceStaticPrometheus) Stop() error
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 ConfigFilePath string // contains filtered or unexported fields }
func (*ServiceStaticPrometheus) Collect ¶
func (p *ServiceStaticPrometheus) Collect(ilogtail.Collector) error
Gather takes in an accumulator and adds the metrics that the Input gathers. This is called every "interval"
func (*ServiceStaticPrometheus) Description ¶
func (p *ServiceStaticPrometheus) Description() string
func (*ServiceStaticPrometheus) Init ¶
func (p *ServiceStaticPrometheus) Init(context ilogtail.Context) (int, error)
func (*ServiceStaticPrometheus) Start ¶
func (p *ServiceStaticPrometheus) Start(c ilogtail.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.