metrics-statsd

Metrics Statsd Support

License

License

Categories

Categories

Metrics Application Testing & Monitoring Monitoring
GroupId

GroupId

io.github.morgaroth
ArtifactId

ArtifactId

metrics-statsd_2.10
Last Version

Last Version

1.5.1
Release Date

Release Date

Type

Type

jar
Description

Description

metrics-statsd
Metrics Statsd Support
Project URL

Project URL

https://github.com/Morgaroth/morgaroth-utils
Project Organization

Project Organization

io.github.morgaroth
Source Code Management

Source Code Management

https://github.com/Morgaroth/metrics-statsd

Download metrics-statsd_2.10

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.morgaroth/metrics-statsd_2.10/ -->
<dependency>
    <groupId>io.github.morgaroth</groupId>
    <artifactId>metrics-statsd_2.10</artifactId>
    <version>1.5.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.morgaroth/metrics-statsd_2.10/
implementation 'io.github.morgaroth:metrics-statsd_2.10:1.5.1'
// https://jarcasting.com/artifacts/io.github.morgaroth/metrics-statsd_2.10/
implementation ("io.github.morgaroth:metrics-statsd_2.10:1.5.1")
'io.github.morgaroth:metrics-statsd_2.10:jar:1.5.1'
<dependency org="io.github.morgaroth" name="metrics-statsd_2.10" rev="1.5.1">
  <artifact name="metrics-statsd_2.10" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.morgaroth', module='metrics-statsd_2.10', version='1.5.1')
)
libraryDependencies += "io.github.morgaroth" % "metrics-statsd_2.10" % "1.5.1"
[io.github.morgaroth/metrics-statsd_2.10 "1.5.1"]

Dependencies

compile (4)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.0
io.dropwizard.metrics : metrics-core jar 3.1.0
com.google.code.findbugs : jsr305 jar 2.0.1
org.slf4j : slf4j-api jar 1.7.7

test (4)

Group / Artifact Type Version
org.slf4j : slf4j-jdk14 jar 1.7.7
junit : junit-dep jar 4.10
org.mockito : mockito-all jar 1.9.0
org.easytesting : fest-assert-core jar 2.0M10

Project Modules

There are no modules declared in this project.

metrics-statsd

Statsd reporter for [codahale/metrics] (https://github.com/codahale/metrics), based on Sean Laurent's [metrics-statsd] (https://github.com/organicveggie/metrics-statsd), Mike Keesey's [metrics-statsd] (https://github.com/ReadyTalk/metrics-statsd), Hannes Heijkenskjöld [metrics-statsd] (https://github.com/jjagged/metrics-statsd) and Mayconbordin [metrics-statsd] (https://github.com/mayconbordin/metrics-statsd) with added support for the TCP protocol.

Only version 3.x of the Metrics library is supported.

Integration

libraryDependencies += "io.github.morgaroth" %% metrics-statsd" % "1.5.1"

Quick Start

The 3.x version of the Metrics library uses the builder pattern to construct reporters. Below is an example of how to create a StatsdReporter and report out metrics every 15 seconds.

StatsDReporter reporter = StatsDReporter.forRegistry(registry)
        .prefixedWith("foo")
        .convertDurationsTo(TimeUnit.MILLISECONDS)
        .convertRatesTo(TimeUnit.SECONDS)
        .filter(MetricFilter.ALL)
        .build("localhost", 8125, "tcp");

reporter.start(15, TimeUnit.SECONDS);

Versions

Version
1.5.1