Orbit Dropwizard Extension

Dropwizard metrics extension for Orbit.

License

License

Categories

Categories

DropWizard Container Microservices Metrics Application Testing & Monitoring Monitoring
GroupId

GroupId

cloud.orbit
ArtifactId

ArtifactId

orbit-dropwizard-metrics
Last Version

Last Version

1.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

Orbit Dropwizard Extension
Dropwizard metrics extension for Orbit.
Project URL

Project URL

https://github.com/orbit/orbit-dropwizard/
Project Organization

Project Organization

Electronic Arts Inc
Source Code Management

Source Code Management

https://github.com/orbit/orbit-dropwizard-metrics

Download orbit-dropwizard-metrics

How to add to project

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

Dependencies

provided (2)

Group / Artifact Type Version
cloud.orbit : orbit-runtime jar 1.9.0
io.dropwizard.metrics : metrics-core jar 4.0.2

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-all jar 1.10.19

Project Modules

There are no modules declared in this project.

Orbit Dropwizard Metrics Extension

Release Maven Central Javadocs Build Status Gitter

Developer & License

This project was developed by Electronic Arts and is licensed under the BSD 3-Clause License.

Introduction

Allows for the collection of metrics in relation to how an application interacts with Orbit.

Metrics Exposed

  • OrbitMetricsActorExtension
    • Actor Activation Timer
      • orbit.actors.activation_time[actor:%s]
    • Actor Lifetime Timer
      • orbit.actors.lifetime[actor:%s]
    • Actor Deactivation Timer
      • orbit.actors.deactivation_time[actor:%s]
    • Actor Active Count
      • orbit.actors.count[actor:%s]
    • Actor Message Receive Rate Meter
      • orbit.actors.msg_received_rate[actor:%s]
  • OrbitMetricsMessagingExtension
    • Inbound Message Timer per Message Type
      • orbit.messaging[type:%s,direction:inbound]
    • Outbound Message Meter per Message Type
      • orbit.messaging[type:%s,direction:outbound]
  • OrbitMetricsInvocationHandler
    • Invocation Timers
      • orbit.actors.methodresponsetime[actor:%s,method:%s]
      • orbit.actors.chainresponsetime[actor:%s,method:%s]

Instructions

If no MetricRegistry is provided to the Extension or InvocationHandler then it will construct a MetricRegistry and make it available by calling the getter method. Otherwise the provided MetricRegistry will be used.

MetricRegistry metricRegistry = new MetricRegistry();

OrbitMetricsActorExtension actorExtension = new OrbitMetricsActorExtension(metricRegistry);
OrbitMetricsMessagingExtension messagingExtension = new OrbitMetricsMessagingExtension(metricRegistry);

OrbitMetricsInvocationHandler invocationHandler = new OrbitMetricsInvocationHandler(metricRegistry);

Builder builder = new Stage.Builder();
builder.extensions(actorExtension, messagingExtension);
builder.invocationHandler(invocationHandler);
Stage stage = builder.build();
stage.start();
cloud.orbit

Orbit

Distributed systems framework for the JVM by @ElectronicArts.

Versions

Version
1.4.0
1.3.0
1.2.2
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0