FAQ Database Discussion Community


Why sonar metrics are sometimes wrong?

c++,sonarqube,metrics,sonarqube-4.5
My sonar metrics are sometimes wrong on : number of comments number of classes number of lines number of code lines For example, when I click on the metric number of classes, I see some files with correct count number of classes, but I see some files with all metrics...

Accessing Azure Metrics

azure,metrics
I'm trying to access metrics for a given cloudService I have the following code: var metricsClient = new MetricsClient(new CertificateCloudCredentials(SubscriptionId, Certificate)); var resourceid = ResourceIdBuilder.BuildCloudServiceResourceId(cloudServiceName, deploymentName); var metricsDefinisions = metricsClient.MetricDefinitions.List(resourceid, null, null); // timeGrain must be 5, 60 or 720 minutes. TimeSpan timeGrain = TimeSpan.FromMinutes(60); DateTime startTime = DateTime.UtcNow.AddDays(-1); DateTime...

Codahale Metrics: using @Timed metrics annotation in plain Java

java,metrics,codahale-metrics
I am trying to add metrics to a plain Java application using codahale metrics. I'd like to use the @Timed annotation, but it is unclear to me which MetricRegistry it uses, or how to tell it which MetricRegistry to use. The application is a plain Java 8 application, built with...

OpenShift Metrics Cartridge

openshift,metrics
OpenShift Metrics Cartridge - is it still available to install? When I try install it to working application it says that There are no cartridges that match 'metrics-0.1'. If so, what tool allow to measure application performance?...

Jaccard Coefficient

language-agnostic,metrics,coefficients
I have been given a formula to calculate the Jaccard Coefficient for two real vectors a and b of length n. Is this formula correct? If I calculate the coefficient for the vectors {5, 3, 1, 0, 3} and {7, 1, 3, 2, 1} I get a negative number which...

spring boot repository metrics

spring,spring-boot,metrics
I am trying to make an object repositoryMetrics in SpringBoot and later I obtained information with this repository. But I create a repository and this always is null. How I generate a repository and this save the metrics? I have this code: public static void stateSist() throws Exception { InMemoryMetricRepository...

What do “key buffer size” and “total MyISAM indexes” unit sizes mean?

mysql,myisam,metrics,mysqltuner
I ran MySQLTuner on my database to check if things are working correctly and optimally, but I was confused as to the units used for these two values. Here is what the output looks like for performance metrics -------- Performance Metrics ------------------------------------------------- [--] Up for: 2d 5h 11m 20s (47M...

Cassandra read latencies

cassandra,metrics,latency
What is the difference between these read latency metrics? org.apache.cassandra.metrics.ClientRequest.Read.Latency org.apache.cassandra.metrics.ColumnFamily.system.batchlog.ReadLatency org.apache.cassandra.metrics.ColumnFamily.system.batchlog.CoordinatorReadLatency org.apache.cassandra.metrics.ColumnFamily.system.batchlog.CoordinatorScanLatency ...

What to include in software metric calculation on laravel project?

php,laravel,software-engineering,metrics
Laravel project contain a lot of files and folder. When we are calculating the Software Metric, should we include them all? I am using phpmetric but it ignored the vendor folder. But when I use phpdepend , it included that folder. Thanks.

How do define a metric in order to evaluate programmers? [closed]

metrics
Lets suppose we have programmer A,B,c . The quality is defined as the number of bugs/month and productivity as LOC/month. So we have programmer A with quality 2 and prod. 2500; programmer B with quality 5 and prod. 500 and programmer C with quality 25 and prod 200. How do...

carbon-tagger does not translate received metrics to Grapthite

metrics,graphite
I have configured monitoring system as bunch of next stuff: my_app -> pystatsd -> statsdaemon -> carbon-tagger -> graphite (via carbon-cache) -> graph-explorer But it looks like carbon-tagger does only dumping metrics to ElasticSearch but not to Graphite. In the same time carbon-tagger successfully send his internal metrics to carbon-cache...

Why ever use CachedGauage in Dropwizard Metrics?

java,metrics,dropwizard,codahale-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 reporting a stale/cached value, of what purpose...

Golang: implements http server health checking. gocraft/health

go,http-headers,metrics,endpoints,endpointbehavior
I want to check the health of my service,having the metrics of each endPoint. My service calls some other services and recieves a Json code, I make templates with it, and then I send it to a http.ResponseWriter. I searched and I found this package "gocraft/health" but I didn't really...

Average Cyclomatic Complexity of multiple files

static-analysis,metrics,code-metrics,cyclomatic-complexity
I ran a static code analysis on a couple of projects and got the Cyclomatic Complexity for every file in those projects from the report that was generated. Now I want to calculate the average Cyclomatic Complexity for the whole project. How would I best achieve that? Just adding up...

Graphite whisper losing old data

metrics,graphite,statsd,grafana,whisper
My graphite whisper databases don't store data older than 7 days old. Using the whisper-fetch.py tool I can only see data up to 1 week back (when there should be data for at least 3 weeks at this point). I'm using grafana, statsd, graphite-web, carbon and whisper. An example of...