bootique-metrics-web: web interfaces to access application metrics and healthchecks

Exposes web interfaces for application metrics and healthchecks

License

License

Categories

Categories

Metrics Application Testing & Monitoring Monitoring Bootique User Interface Web Frameworks
GroupId

GroupId

io.bootique.metrics
ArtifactId

ArtifactId

bootique-metrics-web
Last Version

Last Version

0.8
Release Date

Release Date

Type

Type

jar
Description

Description

bootique-metrics-web: web interfaces to access application metrics and healthchecks
Exposes web interfaces for application metrics and healthchecks
Project Organization

Project Organization

ObjectStyle LLC

Download bootique-metrics-web

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
io.bootique.metrics : bootique-metrics jar 0.8
io.bootique.jetty : bootique-jetty jar [0.17,)

test (4)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-core jar 2.0.31-beta
org.slf4j : slf4j-simple jar 1.7.13
io.bootique : bootique-test jar 0.20

Project Modules

There are no modules declared in this project.

Build Status Maven Central

bootique-metrics

Provides Dropwizard Metrics integration module for Bootique. See usage example bootique-metrics-demo.

Quick Start:

Add the Metrics module to your Bootique app:

<dependency>
	<groupId>io.bootique.metrics</groupId>
	<artifactId>bootique-metrics</artifactId>
	<scope>compile</scope>
</dependency>

Inject MetricRegistry anywhere in your code where you need to create Meters, Gauges, Counters, Histograms, Timers, etc. E.g.:

@Inject
public MyObject(MetricRegistry metrics) {
	this.timer = metrics.timer(MetricRegistry.name(RequestTimer.class, "work-timer"));
}
...
public void doWork() {
	Timer.Context context = this.timer.time();
	try {
		// do work
	} finally {
		long timeNanos = context.stop();
	}
}
io.bootique.metrics

Bootique Project

Bootique is a minimally opinionated platform for modern runnable Java apps

Versions

Version
0.8