Skip to content

Commit

Permalink
Merge pull request #19 from swisspost/feature/vertx_update
Browse files Browse the repository at this point in the history
Updated to Vert.x 4.5.1
  • Loading branch information
mcweba authored Jan 18, 2024
2 parents d607756 + 07d1374 commit 9b7f3bf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Maven Central](https://img.shields.io/maven-central/v/org.swisspush/mod-metrics.svg)]()
[![GitHub contributors](https://img.shields.io/github/contributors/swisspush/mod-metrics.svg)](https://github.com/swisspush/mod-metrics/graphs/contributors)

A vert.x mod to try and expose stats over JMX using the [Metrics](https://metrics.dropwizard.io/4.0.0/)
A vert.x mod to try and expose stats over JMX using the [Metrics](https://metrics.dropwizard.io/4.2.0/)
library.

Default config:
Expand All @@ -31,7 +31,7 @@ The mod accepts the messages below.
`set` on a metric already constructed with `inc`) then I suspect things will
blow up in (not so) interesting ways.

## Gauges (see [here](https://metrics.dropwizard.io/4.0.0/manual/core.html#gauges))
## Gauges (see [here](https://metrics.dropwizard.io/4.2.0/manual/core.html#gauges))

NB: Only accepts Integer values

Expand All @@ -43,7 +43,7 @@ NB: Only accepts Integer values
n : 128
}

## Counters (see [here](https://metrics.dropwizard.io/4.0.0/manual/core.html#counters))
## Counters (see [here](https://metrics.dropwizard.io/4.2.0/manual/core.html#counters))

### incrementing

Expand All @@ -61,7 +61,7 @@ NB: Only accepts Integer values
n : 1 // Optional, defaults to 1
}

## Meters (see [here](https://metrics.dropwizard.io/4.0.0/manual/core.html#meters))
## Meters (see [here](https://metrics.dropwizard.io/4.2.0/manual/core.html#meters))

### mark

Expand All @@ -70,7 +70,7 @@ NB: Only accepts Integer values
action : "mark"
}

## Histograms (see [here](https://metrics.dropwizard.io/4.0.0/manual/core.html#histograms))
## Histograms (see [here](https://metrics.dropwizard.io/4.2.0/manual/core.html#histograms))

### update

Expand All @@ -80,7 +80,7 @@ NB: Only accepts Integer values
n : 10
}

## Timers (see [here](https://metrics.dropwizard.io/4.0.0/manual/core.html#timers))
## Timers (see [here](https://metrics.dropwizard.io/4.2.0/manual/core.html#timers))

If you start a timer, then the `Context` for that timer is stored in a `Map`. Not
stopping the timer will cause this Context to persist in-perpetuity.
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.swisspush</groupId>
<artifactId>mod-metrics</artifactId>
<version>3.0.3-SNAPSHOT</version>
<version>3.1.0-SNAPSHOT</version>
<name>mod-metrics</name>
<description>Vert.x Metrics module for JMX reporting</description>
<url>https://github.com/swisspush/mod-metrics</url>
Expand Down Expand Up @@ -39,9 +39,9 @@
<repositoryId />
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<vertx.version>4.2.1</vertx.version>
<junit.version>4.11</junit.version>
<core-metrics.version>4.0.2</core-metrics.version>
<vertx.version>4.5.1</vertx.version>
<junit.version>4.13.2</junit.version>
<core-metrics.version>4.2.23</core-metrics.version>
</properties>

<repositories>
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/swisspush/metrics/MetricsModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import com.codahale.metrics.Timer.Context;
import com.codahale.metrics.jmx.JmxReporter;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.vertx.core.Promise;
import io.vertx.core.eventbus.Message;
Expand Down

0 comments on commit 9b7f3bf

Please sign in to comment.