racinmat / Statsd.jl

A Julia StatsD Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Statsd.jl

CI codecov

A basic implementation of a Julia StatsD client.

Quickstart

julia> Pkg.add("Statsd")
julia> using Statsd

Usage

Statsd.jl defaults to sending metrics to 127.0.0.1:8125.

You can specify a hostname and port as well.

# Setup the statsd client
client = Statsd.Client("172.10.0.3", 9003)

Counters

# increment http.requests bucket
Statsd.incr(client,"http.requests")
# decrement http.requests bucket
Statsd.decr(client,"http.requests")

Timers

# job.duration took 500ms to complete
Statsd.timing(client,"job.duration",500)

Gauges

# Set disk.usage value to 1029
Statsd.gauge(client,"disk.usage",1029)

Sets

# Set unique.occurence to 3001
Statsd.set(client,"unique.occurence", 3001)

For more information please refer to the StatsD project.

About

A Julia StatsD Client

License:MIT License


Languages

Language:Julia 100.0%