statsd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

README

https://graphite.readthedocs.io/en/latest/install.html

docker run -d
--name graphite
--sysctl net.ipv6.conf.all.disable_ipv6=1
--restart=always
-p 8018:80
-p 2003-2004:2003-2004
-p 2023-2024:2023-2024
-p 8125:8125/udp
-p 8126:8126
graphiteapp/graphite-statsd

docker.infini.ltd:64443/graphite-statsd:latest

root@H2-Linux:/home/medcl# docker login -u infini docker.infini.ltd:64443 root@H2-Linux:/home/medcl# docker pull docker.infini.ltd:64443/graphite-statsd:latest latest: Pulling from graphite-statsd Digest: sha256:a15b6a309d35b4f77d8397bd74d953dfcfa743c6aa485f6aac5d2ada0bc3a87b Status: Image is up to date for docker.infini.ltd:64443/graphite-statsd:latest docker.infini.ltd:64443/graphite-statsd:latest

root@H2-Linux:/home/medcl# vi ~/.docker/config.json { "auths": { "docker.infini.ltd:64443": { "auth": "aW5maW5pOmx0ZA==" } }, "HttpHeaders": { "User-Agent": "Docker-Client/19.03.6 (linux)" } }

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsDConfig

type StatsDConfig struct {
	Enabled           bool   `config:"enabled"`
	Host              string `config:"host"`
	Port              int    `config:"port"`
	Namespace         string `config:"namespace"`
	Protocol          string `config:"protocol"`
	IntervalInSeconds int    `config:"interval_in_seconds"`
	BufferSize        int    `config:"buffer_size"`
}

type StatsDModule

type StatsDModule struct {
	// contains filtered or unexported fields
}

func (*StatsDModule) Absolute

func (module *StatsDModule) Absolute(category, key string, value int64)

func (*StatsDModule) Decrement

func (module *StatsDModule) Decrement(category, key string)

func (*StatsDModule) DecrementBy

func (module *StatsDModule) DecrementBy(category, key string, value int64)

func (*StatsDModule) Gauge

func (module *StatsDModule) Gauge(category, key string, v int64)

func (*StatsDModule) GetTimestamp

func (module *StatsDModule) GetTimestamp(category, key string) (time.Time, error)

func (*StatsDModule) Increment

func (module *StatsDModule) Increment(category, key string)

func (*StatsDModule) IncrementBy

func (module *StatsDModule) IncrementBy(category, key string, value int64)

func (*StatsDModule) Name

func (module *StatsDModule) Name() string

func (*StatsDModule) RecordTimestamp

func (module *StatsDModule) RecordTimestamp(category, key string, value time.Time)

func (*StatsDModule) Setup

func (module *StatsDModule) Setup()

func (*StatsDModule) Start

func (module *StatsDModule) Start() error

func (*StatsDModule) Stat

func (module *StatsDModule) Stat(category, key string) int64

func (*StatsDModule) StatsAll

func (module *StatsDModule) StatsAll() string

func (*StatsDModule) Stop

func (module *StatsDModule) Stop() error

func (*StatsDModule) Timing

func (module *StatsDModule) Timing(category, key string, v int64)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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