GitXplorerGitXplorer
k

akka-dropwizard

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
38c2e219e0c93f20c246c0fe944ff7ab60f79f09

[maven-release-plugin] prepare for next development iteration

committed 7 years ago
Unverified
e64e08a176936745059a1faf0484debd6c74ca8a

[maven-release-plugin] prepare release akka-dropwizard-parent-1.2

committed 7 years ago
Unverified
77ee9f27e61b758b5e3df8f3976704508d8f1f72

Update README for 1.2

committed 7 years ago
Verified
748352206651a2c35f9c55a4b2eaeab4f69744bd

Merge pull request #5 from kevinconaway/fix-stash

kkevinconaway committed 7 years ago
Unverified
9eb41567fcceecb4f43709c5263263233e4e0090

Add support for stash based mailboxes

committed 7 years ago
Unverified
fb0332da2e346035bb8cc0c7f9ba5fc721963e74

[maven-release-plugin] prepare for next development iteration

committed 7 years ago

README

The README file for this repository.

Dropwizard Metrics for Akka Actors

build status

This project instruments an Akka ActorSystem to provide Dropwizard metrics for Actors. Currently, the following metrics are captured:

  • A Gauge for the size of an Actors mailbox
  • A Timer measuring how long a message sits in an Actors mailbox

Usage

This project is composed of two modules:

  • akka-dropwizard-agent, a java agent which performs the ActorSystem instrumentation
  • akka-dropwizard-metrics which contains the code to configure the agent.

First, include the akka-dropwizard-metrics module in your project:

    <dependency>
        <groupId>com.github.kevinconaway</groupId>
        <artifactId>akka-dropwizard-metrics</artifactId>
        <version>1.2</version>
    </dependency>

There is a singleton configuration class, AkkaDropwizard that must be configured before the ActorSystem is created

MetricRegistry registry = ...
AkkaDropwizard.configure(registry);

By default, the metrics will be stored under a root prefix called actor-metrics. You can customize this by providing an instance of AkkaDropwizardSettings to AkkaDropwizard

AkkaDropwizardSettings settings = ...
MetricRegistry registry = ...
AkkaDropwizard.configure(registry, settings);

The instrumentation is performed by a java agent that you need to run with your application. Add the following argument to your VM startup properties:

-javaagent:/path/to/akka-dropwizard-agent-1.2.jar

Compatibility Matrix

Below are the versions Akka and Dropwizard that this library uses in each version

This Project Akka Version Dropwizard Version Spring Boot Version
1.0 2.5.x (Scala 2.12) 3.2.x N/A
1.1 2.5.x (Scala 2.12) 3.2.x 2.0.x
1.2 2.5.x (Scala 2.12) 3.2.x 2.0.x