Questions tagged [codahale-metrics]

A java library to collect metrics about a software, especially servers, during run time and send it to a central system such as StatsD or graphite.

The Metrics library written by Codahale while working at Yammer has gained a strong following in the Java server development community. This library was novel at its inception in that it aggregated metrics on the server node itself and then sent pre-aggregated metrics a central system such as or . This allows you to use the spare CPU cycles and memory for aggregation. Most application servers are not run to capacity and hence there is a lot of available free resources. It would be more expensive to run the same aggregation on a central node or cluster. Pre-aggregation also saves on network bandwidth as the raw metrics could be generated at a very high rate. With on-node aggregation all the metrics are aggregated in memory locally and only shipped to central systems periodically.

In addition the codahale library allows you to easily integrate application specific metrics in addition to more general server metrics that would be captured by traditional systems such as CollectD or JMX.

There are ports of codahale's metrics Libraries in several languages including:

132 questions
0
votes
1 answer

Get the metrics printed on a file instead of sending to the graphite server

I am using dropwizard codahale metrics library to send the metrics data to the graphite server. However, now i have a requirement that these metrics data are to be written to a file instead of being pushed to the graphite server. The data in these…
vamsi
  • 325
  • 5
  • 15
0
votes
1 answer

metrics-aspectj @Timed method on base class throws NullPointerException when class is extended

I have been using metrics-aspectj library and found it very convenient to annotate a method to capture performance metrics. Recently I hit the wall when trying the extend a class that has annotated methods. Here's what I see: @Metrics public class…
Cary Li
  • 241
  • 1
  • 5
  • 9
0
votes
1 answer

Where is the Dropwizard HealthcheckServlet?

I have the following in my build.gradle: compile "io.dropwizard.metrics:metrics-core:3.1.0" compile "io.dropwizard.metrics:metrics-servlet:3.1.0" compile "io.dropwizard.metrics:metrics-healthchecks:3.1.0" On inspection of metrics-servlet, I…
Robert Christian
  • 18,218
  • 20
  • 74
  • 89
0
votes
1 answer

How to have spring boot metrics export averages and absolute values to csv

I need to export counters and gauges to csv in order to process them later on. By using gradle I get the jars for codahale metrics 3.1.2: compile('io.dropwizard.metrics:metrics-core:${metricsVersion}'…
Marged
  • 10,577
  • 10
  • 57
  • 99
0
votes
1 answer

Instrumenting OkHttpClient

I'm writing a small wrapper library that'll allow me to monitor the internals of an OkHttpClient using Dropwizard Metrics: https://github.com/raskasa/metrics-okhttp. I'm having some trouble properly instrumenting the ConnectionPool - specifically,…
Kasa
  • 189
  • 2
  • 13
0
votes
1 answer

Monitoring the metrics of the API of Java application

I am using com.sparkjava library for writing API.I want to monitor the metrics of these API like the average ,min and max time taken to give the response, throughput for the API's and count of request sent for the API etc., I was looking for a…
uttam
  • 435
  • 9
  • 24
0
votes
1 answer

understand java metric library units in jvisualVM

Basically i am trying to understand the OneMinuteRate, RateUnit of the metric java library So i have hit the server login method with 51 request using jmeter and now i am trying to make sense of the data. 1 The COUNT gives the total number of times…
Bhuvan
  • 4,028
  • 6
  • 42
  • 84
0
votes
1 answer

How to handle Dropwizard metrics if the service goes down or is restarted?

I have a use case where we have to monitor the various stats of service where we are using Dropwizard metrics and pushing them to a server. But the metrics are reset if the service goes down and is restarted. The counters are reset to 0 which will…
0
votes
1 answer

Spring 4 + Jersey 2 + Metrics

I'm trying to use Coda Hale's Metrics framework to time methods in my application. I've configured the InstrumentedResourceMethodApplicationListener to integrate Metrics with Jersey 2, but now I'd like my Spring injected services and repositories to…
user2722238
  • 241
  • 1
  • 4
  • 7
-1
votes
1 answer

Why are performance metric libraries needed for metric implementations?

I have this primitive doubt. There are many metrics libraries for Java such as http://metrics.dropwizard.io/3.1.0/getting-started/ How are these different from having primitive data types and doing the metrics ourselves? For example, this provides…
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
-1
votes
1 answer

Distributed Metrics

I have been working on a single box application which uses codehale metrics heavily for instrumentation. Right now we are moving to cloud and I have below questions on how I can monitor metrics when the application is distributed. Is there a…
Neoster
  • 195
  • 2
  • 11
-1
votes
1 answer

How to - Spring MVC and Spring-Data-Rest controllers with CodaHale-Metrics

how can one inject Coda Hale Metrics using Spring AOP and/or using http://www.ryantenney.com/metrics-spring/ library. Are there any examples out there?
1 2 3
8
9