Questions tagged [metrics]

Software metrics are quantitative data related to software.

A software metric is an objective and reproducible quantitative measure of some property of the product, its source code, its specification, or the development process that was applied. These can refer to development time metrics such as or runtime metrics such as .

Although the generic term "metrics" is usually used to refer to the latter especially in server-side development. For further information about metrics and their importance in modern software development you can read the seminal work Measure Anything Measure Everything by Ian Malpass.

This tag should be applied to general questions about metrics or questions that span multiple metrics types or implementations or if your are not sure which specific tag applies. For questions specific to a particular metric system more specific tags such as ,, and so forth.

2802 questions
11
votes
1 answer

JS based influxdb graph editors like Grafana, Influga, are there reusable libraries?

I have been working with tools like grafana or influga, which are fantastic projects which facilitate the creation of dashboards with charts and various type of graphs. I was wondering, would it be possible to separate the 2 core features of these…
nemesisdesign
  • 8,159
  • 12
  • 58
  • 97
11
votes
6 answers

Mysql count how many queries per second are executed, is there any way?

i have a busy web server with LAMP installed, and i was wondering, is there any way to count how many queries per second (mysql) are executed in the server ? Thank you.
Nikos
  • 121
  • 1
  • 2
  • 5
11
votes
2 answers

How do I use ELB's HealthyHostCount for monitoring in CloudWatch?

We have three EC2 instances—one in each availability zone (AZ) in the eu-west-1 region. They are loadbalanced using ELB. We'd like to monitor how many instances are registered at the loadbalancer, using CloudWatch. The problem ist: I don't really…
awendt
  • 13,195
  • 5
  • 48
  • 66
10
votes
4 answers

Eclipse plugin for measuring lines of code

I'm running Eclipse Helios (3.6) and was wondering if there is a nice plugin out there that will count the number of logical lines of code in a java source file. By logical, I mean if (j > 6) { j--; } In other words, 2 logical lines of code (2…
Joeblackdev
  • 7,217
  • 24
  • 69
  • 106
10
votes
0 answers

Datadog: METRIC.as_rate() vs. per_second(METRIC)

I'm trying to figure out the difference between the in-application modifier as_rate() and the rollup function per_second(). I want a table with two columns: the left column shows the total number of events submitted to a Distribution (in…
10
votes
6 answers

How can I consume Firebug net panel data programmatically?

My agile team will be adding new features to a existing realty website. As we add the features we want to have a better handle on the site's overall performance as well as the performance of particular pages. I would like to automate the gathering…
Benjamin Lee
  • 1,160
  • 3
  • 13
  • 18
10
votes
2 answers

Is sharing Google Analytics tracking id safe?

I currently creating a cross platform desktop application using Electron. I wish to add analytics to view user metrics. When I try to find for existing packages that provides metrics info, I found electron-ga. The package uses GA to track user…
user2672399
  • 185
  • 1
  • 10
10
votes
2 answers

When using mectrics in model.compile in keras, report ValueError: ('Unknown metric function', ':f1score')

I'm trying to run a LSTM, and when I use the code below: model.compile(optimizer='rmsprop', loss='binary_crossentropy', metrics=['accuracy', 'f1score', 'precision', 'recall']) It returns: ValueError: ('Unknown metric function',…
Shenghao Chen
  • 105
  • 1
  • 1
  • 6
10
votes
11 answers

How to present your code to potential buyers?

I'll do a demo of my code to slightly non-technical audience, and I need to show them what I've got in my project (about 15K lines of code). I'm trying to convince them that I've spend time on the project and it's in a good state. These guys…
dr. evil
  • 26,944
  • 33
  • 131
  • 201
10
votes
4 answers

Multi-timeseries operations in Grafana

How do I subtract two timeseries in Grafana? Or add two together, divide one by another, etc...? I have found vague hints online about taking differences between timeseries, but nothing that actually tells me how to do so. I'm using Grafana…
staticfloat
  • 6,752
  • 4
  • 37
  • 51
10
votes
1 answer

Algorithm Analysis tool for java

I am looking for an algorithm analysis tool for java that can calculate Big 0 of a function. Ideal I would like to make it part of my build process, along side of my other code metrics tool. Even after searching on google I am unable to find any…
Mansoor
  • 101
  • 1
  • 3
10
votes
1 answer

How do we determine whether a size is base on 1000 or 1024 when we see kb or mb

There are many programs in Linux which would show the size of a file, some of them show it in blocks, some are in bytes. But when it comes to some human readable form, like ls -sh, lvs, dd bs=size and so many, how do we decide if it's a multiple of…
dspjm
  • 5,473
  • 6
  • 41
  • 62
10
votes
1 answer

TeamCity Quality metrics dashboard

We use jetBrains TeamCity continuous integration server for builds. We've got tens of different projects in TeamCity, and want to see one big picture across them in terms of their development quality, to find out which projects are lacking quality…
Ivan
  • 9,089
  • 4
  • 61
  • 74
9
votes
3 answers

McCabe Cyclomatic Complexity for switch in Java

I am using a switch statement with 13 cases, each case only has an one line return value. McCabe paints this in red. Is there an easier way to write a big switch statement? It doesn't seem complex to read, but I don't like the default setting…
Franz Kafka
  • 10,623
  • 20
  • 93
  • 149
9
votes
1 answer

What is "Third Generation Scale"?

In the context of counting source lines of code (SLoC) what is the "Third Generation Scale" factor that is defined on each programming language?
Yuval Adam
  • 161,610
  • 92
  • 305
  • 395