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
1
vote
3 answers

Java/Scala Metrics - Codahale - Cluster/Mulitnode & Graphite Reporter

When using CodaHale Metrics in Java or Scala code a clustered environment what are the gotchas when reporting to Graphite? If I have multiple instances of my application running and creating different metrics can Graphite cope - i.e. is reporting…
NightWolf
  • 7,694
  • 9
  • 74
  • 121
1
vote
2 answers

metrics clojure ring middleware not recording metrics

In my handler I have the following defined: (def reg (new-registry)) (def app (-> app-routes (expose-metrics-as-json) (instrument reg))) If I go to /metrics I only see an empty json object. What am I missing? Also, the…
shmish111
  • 3,697
  • 5
  • 30
  • 52
0
votes
1 answer

How to configure sending Dropwizard metrics to Prometheus?

I am calculating dropwizard metrics and I am using the "meter" metric of DW to calculate how many number of times in a second a particular API was hit. and I want to send this "rate metrics" calculated by DW to Prometheus. I know DW stores these…
userdr725
  • 25
  • 1
  • 6
0
votes
1 answer

How to expose metrics to http in dropwizard?

I am reading following document: https://metrics.dropwizard.io/4.2.0/getting-started.html I've added io.dropwizard.metrics metrics-servlets
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

com.codahale.metrics.Gauges in spring boot application

I would like to add metrics to track the size of number of operations and number of sites, which are stored in values in a service: import java.util.concurrent.atomic.AtomicInteger; import org.springframework.stereotype.Service; @Service public…
Ivajlo Iliev
  • 303
  • 1
  • 3
  • 19
0
votes
0 answers

Message Loss (message sent to spring-amqp doesn't get published to rabbitmq)

We are having a setup where we are using spring-amqp transacted channels to push our messages to RabbitMq. During a testing we found that messages were not even getting published from spring-amqp to rabbitmq; we suspect…
Ankit
  • 609
  • 2
  • 10
  • 26
0
votes
1 answer

How to automatically add Dropwizard Metrics @Timed into all APIs method in spring boot application?

I have an Spring Boot application integrated with Dropwizard Metrics following this link. When I added the @Timed annotation into some APIs (controller methods) it showed on the metrics link. For example, for below…
Ca Pham Van
  • 316
  • 1
  • 3
  • 12
0
votes
0 answers

Loader constraint violation when using Dropwizard Histogram metric in Apache Flink

I am running a streaming job on Flink 1.9.1 cluster and trying to get a histogram of values into our Prometheus metric collector. Per recommendation in Flink docs, I used Dropwizard histogram implementation with the Flink-provided wrapper, however…
Erbureth
  • 3,378
  • 22
  • 39
0
votes
1 answer

Calculate percentage along with groupBy in Grafana

I am logging a success count metric and failure count metric for every 30 seconds into graphite. In the Grafana, I am using per second and hitCount(1minute) that aggregates the count(success and failure) for every minute. Now I need to calculate…
Harish
  • 565
  • 1
  • 12
  • 34
0
votes
1 answer

Log data into grafana for every minute

The below code registers five metrics count, oneminuteRate, fiftenMinuteRate, fiveMinuteRate, meanRate into graphite for every 30 seconds from my application. public void collectMetric(string metricName, long metricValue){ …
Harish
  • 565
  • 1
  • 12
  • 34
0
votes
1 answer

How do I measure the elapsed time between thread in Apache Storm?

I am getting metrics of Storm's bolts and spouts using [codahale-metrics] and sending to Graphite server. How do I get the time to send messages between bolts and spouts? For example. this code is just for metrics on each executor: import…
Felipe
  • 7,013
  • 8
  • 44
  • 102
0
votes
1 answer

Grafana - Create Table from Counter Data

I have some metrics in Graphite, in the form of a 'count' that has the continuous number of times something happens. I have this brought into Grafana as a 'Time series aggregations' table. This works, however it shows the total count instead of…
Alex Blundell
  • 2,084
  • 5
  • 22
  • 31
0
votes
1 answer

How to show Dropwizard active requests in logs

This question is related to the one I ask here. I'm trying to log the number of active requests being made to my Dropwizard application every 10 minutes. The idea is to track usage of the app so it can get the proper support. In doing this, I'm…
SVill
  • 331
  • 5
  • 22
  • 55
0
votes
0 answers

JSON support of Metrics

I want to fetch various metrics of Cassandra in JSON format. I read about Metrics JSON support. However, there weren't many details given. I don't know what exactly it does and if it can be used for fetching Cassandra's Metrics in JSON format, how…
Vishal Sharma
  • 1,670
  • 20
  • 55
0
votes
1 answer

Using MetricsServlet to fetch metrics in Cassandra

I want to fetch various metrics like read/write latency, disk utilisation etc. of each of my Cassandra nodes(without using JMX) as a JSON object. It seems to me that MetricsServlet, can do exactly that. However, I'm still not able to figure out,…
Vishal Sharma
  • 1,670
  • 20
  • 55
1 2 3
8 9