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
3
votes
2 answers

How can I reset timer of dropwizard metrics?

We are processing messages that comes in periodically. We use codahale dropwizard metrics' "Timer" for measuring the time it takes to process them. I found someone had the same issue here: "problem with exponentially decaying reservoir is that if…
Balazs Varhegyi
  • 991
  • 1
  • 18
  • 37
3
votes
0 answers

dropwizard metrics: graphitereporter unable to report string gauges

I recently started exploring various options in dropwizard metrics and used GraphiteReporter for reporting these to Graphite installed on a VM I created several gauges, timer and counters and most of the data was correctly displayed on graphite…
Jay
  • 31
  • 3
3
votes
1 answer

how to make /metrics endpoint show the metrics Sorted?

I have a Spring Boot 1.3.1 project. Using actuator, so I have /metrics endpoint too. I am using codahale to add a metric per some of my methods, and the full java classname is the name of the metric. That is all ok. But the metrics there show…
Persimmonium
  • 15,593
  • 11
  • 47
  • 78
3
votes
1 answer

Graphite : invalid line received from client (codahale metrics)

I received errors in carbon when trying to using metrics for graphite : [listener] invalid line received from client HOST:PORT, ignoring So, I tried to add some logs in /opt/graphite/lib/carbon/protocols.py like this. And I see in logs this…
3
votes
3 answers

Trying to integrate Coda Hale Metrics in spring boot, not seing the metrics in /metrics

I have followed the indication that adding the coda hale metrics library into the classpath would automatically autoconfigure the metrics. That works, I get the injected metricRegistry bean. However, how to I expose these new metrics in the /metrics…
Luis Muñiz
  • 4,649
  • 1
  • 27
  • 43
2
votes
3 answers

How to export metrics (collected by DropWizard) in Prometheus format from java application?

My aim - create spring boot application, collect metrics using DropWizard and expose endpoint for Prometheus to consume application metrics: My code: @SpringBootApplication @EnableMetrics(proxyTargetClass = true) public class DemoApplication { …
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
2
votes
1 answer

How to switch correctly from Dropwizard metrics to Micrometer?

I have a piece of an old code which uses Codahale metrics. I would like to change it to Micrometer. And I am fine with switching the easy ones, I have some troubles to reproduce funtionality of some Codahale specific objets. And I am fine with…
KompiKompi
  • 400
  • 4
  • 22
2
votes
0 answers

How to add/register and generate metrics for cassandra client program

In our java application we have a client program that insert bulk records into cassandra asynchronously. We are using guava Future and added callback to track success and failure for our insert operations. Now I want to add and generate metrics to…
2
votes
0 answers

Disable spring metric name rules for controllers and methods annotated with requestMapping annotation

I'm new to Spring Boot Actuator and its metrics. In documentation and all examples that I read it is always shown that spring exports endpoints metrics in such way gauge.response.[method-path]. But in some cases we have complex @RequestMappings. For…
Aliaksei Bulhak
  • 6,078
  • 8
  • 45
  • 75
2
votes
0 answers

Display messages per second in Grafana influxdb and dropwizard metrics

I am using dropwizard metrics meter to count the total number of requests my application receives. And i am pushing this meter data to influxdb which i want to show in grafana dashboard. my influx db data looks like :- time client …
dks551
  • 1,113
  • 1
  • 15
  • 39
2
votes
1 answer

How Do I Add My Custom Metrics To Dropwizard /metrics

I am using the Dropwizard Metrics library to record the times various actions take in my app, using a Timer and the the ConsoleReporter and that records count, mean rate, etc to the console fine. I would like these figures to also be available on…
matt freake
  • 4,877
  • 4
  • 27
  • 56
2
votes
2 answers

How to add custom MetricFilter in GraphiteReporter to send only selected metricd

I have implemented Dropwizard metrics in my application. I am sending metrics to Graphite using below code. final Graphite graphite = new Graphite(new InetSocketAddress("xxx.xxx.xxx.xxx", xxxx)); final GraphiteReporter graphiteReporter =…
Mayank Singh
  • 109
  • 1
  • 11
2
votes
0 answers

Is there a 'value in time' concept in metrics, or how do I create one?

I am using metrics-clojure http://metrics-clojure.readthedocs.io/en/latest/ lists gauges, counters, meters, timers and histograms. What I want is instead to report a number. Very much like counter, but with a set! operation instead of just inc!/dec!…
Timothy Pratley
  • 10,586
  • 3
  • 34
  • 63
2
votes
0 answers

How to configure dropwizard/CodaHale metrics in spring mvc without any third party Integration(eg ryantenny)

I want to integrate codahale-metrics annotations in my project spring MVC project using annotation without any third party integration(like rynatenney @EnableMetrics). Is there any alternate method to configure codahale-metrics without using…
2
votes
0 answers

Are meters and gauges in codahale metrics sensitive to the limitations of lossy sampling?

I've recently come across this article regarding the limitations of calculating latency percentiles using lossy sampling with and exponentially decaying reservoir such as used in codahale metrics. As far as I understand the gauges and meters are…
barrymac
  • 2,750
  • 1
  • 20
  • 32
1 2
3
8 9