statter

package module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: MIT Imports: 2 Imported by: 0

README

Logo

Go Report Card Build Status Coverage Status GoDoc GitHub release GitHub license

Go stats clients

Overview

Install with:

go get github.com/hamba/statter
Supported stats clients
  • L2met Writes l2met to a Logger interface
  • Statsd Writes statsd to UDP
  • Prometheus Exposes stats via HTTP

Documentation

Overview

Package statter is a collection of stats clients utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Statter

type Statter interface {
	io.Closer

	// Inc increments a count by the value.
	Inc(name string, value int64, rate float32, tags ...string)

	// Gauge measures the value of a metric.
	Gauge(name string, value float64, rate float32, tags ...string)

	// Timing sends the value of a Duration.
	Timing(name string, value time.Duration, rate float32, tags ...string)
}

Statter represents a stats instance.

Directories

Path Synopsis
internal
Package l2met implements an l2met stats client.
Package l2met implements an l2met stats client.
Package prometheus implements an prometheus stats client.
Package prometheus implements an prometheus stats client.
Package statsd implements an statsd client.
Package statsd implements an statsd client.

Jump to

Keyboard shortcuts

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