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
5
votes
1 answer

Custom metrics in Apache Spark Ui

I'm using Apache Spark and the metrics UI (found on 4040) is very useful. I wonder if it's possible to add custom metrics in this UI, custom task metrics but maybe custom RDD metrics too. (like executing time just for a RDD transformation ) It could…
crak
  • 1,635
  • 2
  • 17
  • 33
5
votes
2 answers

Persist Coda Hale Metric information

I am a newbee to Coda Hale Metrics. I have created a sample spring app which is having a simple RESTful web service method. I have used Meter, Timer and Counter tools provided by Coda Hale Metrics framework, to track the number of requests, request…
нαƒєєz
  • 1,239
  • 4
  • 17
  • 27
5
votes
2 answers

Why ever use CachedGauage in Dropwizard Metrics?

I see there is the CachedGauge in the DropWizard Metrics (formerly Coda Hale Metrics) lib. I'm wondering why anyone would ever use this?!? My understanding of the value of a metric is that it is real-time, accurate and relevant. If a metric is…
smeeb
  • 27,777
  • 57
  • 250
  • 447
5
votes
1 answer

How to clear historical stats from Java codahale Metrics Timers

Am using the codahale Metrics API for Java. We are using Timers all over our system to collect latencies. During perf testing we are connecting to our system via JMX to collect stats, such as Mean latencies, 75th Percentile latencies etc. Problem…
Ben
  • 6,567
  • 10
  • 42
  • 64
4
votes
0 answers

Difference between 'value' and 'number' in Dropwizard Metrics CachedGauges

I'm using Dropwizard Metrics to expose the metrics of an HikariCP connection pool. These metrics are then piped to Prometheus using its jmx_exporter. One of the exposed metrics is the number of active connections, which, as stated on the HikariCP…
stefanobaghino
  • 11,253
  • 4
  • 35
  • 63
4
votes
0 answers

Jackson can't serialize Object when contained In Map

When requesting a single com.codahale.metrics.Meter via Jersey-REST-Service, Jackson is doing just fine and serializes the Meter to (formatting done by me) { "count":0, "fiveMinuteRate":0.0, "fifteenMinuteRate":0.0, "oneMinuteRate":0.0, …
p0nder
  • 41
  • 4
4
votes
2 answers

Find the execution time of a code block using DropWizard timers

I went through this question DropWizard Metrics Meters vs Timers and understood the concept of timers. But is there a way that I can log the execution time of a code block, each time it is called? I do not want the mean rate and stuff of this timer…
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
4
votes
0 answers

Codahale meter simple moving average

I am using java codahale metrics library. I am using a meter. The meter automatically produces m1_rate, m5_rate and m15_rate but these rates are exponentially weighted. Is there a way to generate simple moving averages (without exponential…
Sathya
  • 1,076
  • 1
  • 8
  • 17
4
votes
1 answer

How do I configure Dropwizard/CodaHale metrics for ehCache in Spring Boot application?

So here's my problem. My Spring Boot application uses Hibernate/JPA and ehCache for 2nd level caching. I'd like to instrument ehCache with Dropwizard/Coda-Hale metrics, but I'm not really sure how to do it. If I were manually creating Cache…
Kevin M
  • 2,717
  • 4
  • 26
  • 31
4
votes
3 answers

Monitoring Storm JVM metrics

I have got a storm cluster running and I want to monitor its performance. I followed this blog and was able to measure the number of tuples received by a bolt using codahale metrics and display it in graphite. My goal is to deploy a storm cluster on…
paalaak
  • 183
  • 1
  • 3
  • 11
4
votes
1 answer

Metrics doesn't decay when no values are reported

I am using codahale metrics for monitoring purposes. Lets say there is a spike in latency at some point and later there are no values reported due to attribute that there are no traffic, the value in the graph stays as is(I am using a histogram). At…
Simpson
  • 292
  • 3
  • 13
3
votes
1 answer

aggregating codahale metrics counts across ECS task instances in CloudWatch

I've got an ECS service reporting metrics to CloudWatch collected with Codahale Metrics. Some of the metrics are counts, eg count of requests made to an external service. Each service instance maintains and reports to CloudWatch its own count. To my…
sumek
  • 26,495
  • 13
  • 56
  • 75
3
votes
0 answers

Implementing Spark metric source and Sink for custom application metrics

I posted below question on Spark user mailing list but as usual there is no response from community. What is the best way to instrument metrics of Spark Application from both Driver and Executor. I am trying to send my Spark application metrics into…
Anil Kumar
  • 31
  • 3
3
votes
0 answers

Plot InfluxDB moving average in Grafana

In my influxdb i have the metrics like below. These metrics are dropwizard meter metrics which capture the moving average values for 1-, 5-, and 15-minute. select * from "messages" limit 10 time client cluster count …
dks551
  • 1,113
  • 1
  • 15
  • 39
3
votes
0 answers

What is causing this 15-minute slowdown?

Could something besides Spring's @Transactional annotation be causing this massive 15-minute slowdown? Edited to add information at the end. I have a web app that is occasionally performing extremely slowly. Parts of the site are driven by dynamic…
Ryan
  • 2,061
  • 17
  • 28
1
2
3
8 9