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

Unable to create timer play metrics on API basis

I am creating Play metrics on API basis, So for that i have a filter which will identify the URL from request header and create metrics on the basis of URL. But for creating timer metrics we have to start and stop the context at the beginning and…
priyam singh
  • 105
  • 3
  • 16
0
votes
1 answer

DropwizardMetricServices doesn't submit the gauge metric to JMX for second time (after removing the first time)

DropwizardMetricServices#submit() I'm using doesn't submit the gauge metric for second time. i.e. My use-case is to remove the gauge metric from JMX after reading it. And my application can send the same metric (with different value). For the…
barath
  • 762
  • 1
  • 8
  • 26
0
votes
1 answer

Tomcat memory leak warnings when gracefully shutting down - Codahale

I'm having an issue when attempting to when gracefully shutting down tomcat. This severe warning is issued and the application will hang until terminated. Seems to be related to codahale in this case unlike another few similar questions. Any…
Ollie
  • 63
  • 1
  • 5
0
votes
1 answer

Scala/Akka/Dropwizard Metrics app hanging for 10s before shutting down

I have a Scala 2.11 app that uses Akka. The GitHub repo for it is here. To reproduce what I'm seeing, just clone it, build it via ./gradlew fullBuild and then run it via java -jar build/libs/akka-scala-troubleshooting.jar (its a self-contained…
smeeb
  • 27,777
  • 57
  • 250
  • 447
0
votes
1 answer

Why ClientRequest.* and storage.* metrics are not reported with builtin ConsoleReporter in DSE Cassandra?

I am trying to get the metrics from DSE Cassandra(dse: 5.1.0, Cassandra :3.10.0.1652) using builtin reporters like ConsoleReporter. I could able to get all the metrics except the metrics under ClientRequest.* and Storage.* even though I have…
0
votes
1 answer

What metrics-core does Dropwizard uses by default?

I've been trying to figure out MetricRegistry details for one of my project based out on dropwizard:1.1.0 A minor confusion here is that I see the version used for localhost:8181/metrics (adminConnector) by my service is 3.1.3 which is not the…
Naman
  • 27,789
  • 26
  • 218
  • 353
0
votes
1 answer

Dropwizard Counter Not Retaining value in Spring Boot App

I am trying to register the # of spring boot apps I've in my pvt cloud environment. Logic is to use Counter metric to increment during startUp and decrement during shut down. All the different deployments will publish to the same…
Divs
  • 1,578
  • 2
  • 24
  • 51
0
votes
1 answer

Suitable metrics to capture simple responseTime value over time using dropwizard and graphite

As I find in other examples, Timer.Context timer = metricRegistry.timer("name").time(); .... timer.stop(); This gives Timer metric which is "A timer measures both the rate that a particular piece of code is called and the distribution of its…
Divs
  • 1,578
  • 2
  • 24
  • 51
0
votes
0 answers

How to aggregate dropwizard metrics from microservices and send them to logstash(ELK)

I want to aggregate some metrics. In my monitoring application, i send requests on all microservices with HTTP request. The microservices(in other JVM) report metrics, with dropwizard and actuator, it's work well, in a for loop, i make calls like…
Jérémie
  • 91
  • 1
  • 7
0
votes
2 answers

Graphite metrics shows wrong results

I'm using Graphite with Codahale to record metrics from my java server. I have a block code that looks something like that: public void foo() { try (Timer.Context ignored = myTimer.start()) { // Some code } } When I look at today's event…
Avi
  • 21,182
  • 26
  • 82
  • 121
0
votes
1 answer

Aggregating Counts per min using graphite functions with codahale counter data

Our ecosystem right now is graphite/grafana and we use the codahale metrics java library. I define a counter requestCounter = registry.counter(MetricNamespaces.REQUEST_COUNT); and increment on every request hit to our app…
hackmabrain
  • 457
  • 1
  • 6
  • 21
0
votes
1 answer

Displaying Java Metrics results in Graphite

I have setup a Graphite server and I am trying to print my Java metrics into the graphite UI. Graphite is up and running as I can see its web UI in localhost. I used the below code to redirect my metrics results to graphite console. Graphite…
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
0
votes
1 answer

Codahale metrics counter reset and count everyday

Using Codahale metrics is there an way to count for last 24 hours(today). to generate report like below: Request Count: lastSec lastMin lastHour today ======================================= 1 5 22 45 Response…
Abhishek Nayak
  • 3,732
  • 3
  • 33
  • 64
0
votes
0 answers

Golang broken pipe

I have a code segment that is reading from a TCP connection and after the first few connections, the server is outputing broken pipe however no error is occurring in my go code. The server sending the messages is at its core the coda hale metrics…
Jamil Seaidoun
  • 949
  • 1
  • 11
  • 24
0
votes
1 answer

Change the default behavior of JMXReporter

I'm trying to push custom gauge type metrics of my application to JMX using com.codahale.metrics.JmxReporter. It seems like JMXReporter by default pushes the metrics to the endpoint /metrics which appends an attribute called .value to the metric…
barath
  • 762
  • 1
  • 8
  • 26
1 2 3
8
9