com.scmspain:metrics

Interface to send custom metrics

License

License

Categories

Categories

Metrics Application Testing & Monitoring Monitoring
GroupId

GroupId

com.scmspain
ArtifactId

ArtifactId

metrics
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

com.scmspain:metrics
Interface to send custom metrics
Project URL

Project URL

https://github.com/scm-spain/metrics
Source Code Management

Source Code Management

https://github.com/scm-spain/metrics

Download metrics

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.13
com.netflix.archaius : archaius-core jar 0.7.3
com.google.inject : guice jar 3.0
com.timgroup : java-statsd-client jar 3.1.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

Metrics

Maven Central

This library tries to abstract the features of StatsD, so we have a common interface even though we want to change the library underneath (StatsD at this point).

Usage

Just bind the common interface to the implementation that you want to use

bind(Metrics.class).to(NonBlockingStatsDClient.class).asEagerSingleton();

This module provides a test double for the Metrics interface, so that if you want to test classes that depend on this component, you don't need to create your own stub.

com.scmspain

SCHIBSTED CLASSIFIED MEDIA SPAIN S.L

Versions

Version
0.1.0