statsd

package
Version: v0.0.0-...-12ae2a3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package statsd provides the statsd-like functionality.

Index

Constants

This section is empty.

Variables

View Source
var (
	Prefix string = "stats"
)

Functions

This section is empty.

Types

type Stat

type Stat struct {
	Name   string
	Value  float64
	Metric string
	Sample float64
	Delta  bool
}

func ParseStatsdPacket

func ParseStatsdPacket(packet string) (*Stat, error)

ParseStatsdPacket parses a statsd packet e.g: gorets:1|c|@0.1. See https://github.com/etsy/statsd/blob/master/docs/metric_types.md There is no need to support multi-metric packets here, since it uses newline as separator, the text handler in daemon/services.go would take care of it.

func (*Stat) AggregatorCmd

func (st *Stat) AggregatorCmd() *aggregator.Command

Source Files

Jump to

Keyboard shortcuts

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