Fluentd Integration for Dropwizard Metrics

A reporter for Metrics which announces measurements to a fluentd.

License

License

Categories

Categories

DropWizard Container Microservices
GroupId

GroupId

com.krrrr38
ArtifactId

ArtifactId

dropwizard-fluency-reporter
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Fluentd Integration for Dropwizard Metrics
A reporter for Metrics which announces measurements to a fluentd.
Project URL

Project URL

https://github.com/krrrr38/dropwizard-fluency-reporter
Source Code Management

Source Code Management

https://github.com/krrrr38/dropwizard-fluency-reporter

Download dropwizard-fluency-reporter

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
io.dropwizard.metrics : metrics-core jar 3.2.4
org.komamitsu : fluency jar 1.4.0

test (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 1.5.6.RELEASE

Project Modules

There are no modules declared in this project.

dropwizard-fluency-reporter

Dropwizard Metrics meets Fluentd.

Setup

Maven Central

<dependency>
  <groupId>com.krrrr38</groupId>
  <artifactId>dropwizard-fluency-reporter</artifactId>
  <version>${version}</version>
</dependency>

Usage

  • Send metrics to fluentd every minute.
MetricRegistry metricRegistry = new MetricRegistry();
// ... metricRegistry.histogram("myhistogram").update(100)
Fluency fluency = Fluency.defaultFluency();
FluencyReporter.forRegistry(metricRegistry)
               .prefixedWith("mymetrics")
               .build(fluency)
               .start(1, TimeUnit.MINUTES);
  • e.g. mymetrics.myhistogram json value
{
  "min": 0,
  "max": 99,
  "count": 100,
  "mean": 49.50000000000002,
  "stddev": 28.866070047722125,
  "p50": 49.0,
  "p75": 74.0,
  "p95": 94.0,
  "p98": 97.0,
  "p99": 98.0,
  "p999": 99.0
}

Dev Tools

Release

make release

SNAPSHOT Release

make snapshot

Tips

  • raise Inappropriate ioctl for device, when snapshot release, try following
export GPG_TTY=$(tty)

Versions

Version
0.0.1