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

Micrometer @Timed annotation on simple public and private (service) methods

I'm trying to apply Prometheus metrics using the micrometer @Timed annotations. I found out that they only work on controller endpoints and not "simple" public and private methods. Given this example: @RestController public class TestController { …
Edito
  • 3,030
  • 13
  • 35
  • 67
13
votes
1 answer

Why Pearson correlation is different between Tensorflow and Scipy

I compute the Pearson correlation in 2 ways : In Tensorflow, I use the following metric : tf.contrib.metrics.streaming_pearson_correlation(y_pred, y_true) When I evaluate my network on test data, I got following results : loss =…
Astariul
  • 2,190
  • 4
  • 24
  • 41
13
votes
2 answers

Kubernetes 1.11 could not find heapster for metrics

I'm using Kubernetes 1.11 on Digital Ocean, when I try to use kubectl top node I get this error: Error from server (NotFound): the server could not find the requested resource (get services http:heapster:) but as stated in the doc, heapster is…
FakeAccount
  • 242
  • 1
  • 3
  • 19
13
votes
6 answers

is there a way with spaCy's NER to calculate metrics per entity type?

is there a way in the NER model in spaCy to extract the metrics (precision, recall, f1 score) per entity type? Something that will look like this: precision recall f1-score support B-LOC 0.810 0.784 0.797 1084 …
ln pi
  • 131
  • 1
  • 1
  • 4
13
votes
4 answers

How to retrieve kubernetes metrics via client-go and golang

I want to access metrics from kubernetes with golang. Something like cpu and memory per node as well as the same for pods and/or namespaces. I am kind of lost here because the documentation is not as clear as it could be. I have learned that there…
silverfighter
  • 6,762
  • 10
  • 46
  • 73
13
votes
1 answer

Custom Metrics for Actuator Prometheus

I have activated the spring actuator prometheus endpont /actuator/prometheus. By adding the dependencies for micrometer and actuator and enabled prometheus endpont. How can i get there custom metrics?
13
votes
9 answers

How do I convert between a measure of similarity and a measure of difference (distance)?

Is there a general way to convert between a measure of similarity and a measure of distance? Consider a similarity measure like the number of 2-grams that two strings have in common. 2-grams('beta', 'delta') = 1 2-grams('apple', 'dappled') = 4 What…
135498
  • 251
  • 1
  • 4
  • 6
13
votes
2 answers

Storm UI: Difference between Execute and Process Latencies

I've been trying to document meaning of all of the Storm metrics for my current project. During this process I've collected data from this group responses as well as github. While some of the metrics are pretty self explanatory, I've got really…
notrockstar
  • 833
  • 3
  • 15
  • 28
12
votes
2 answers

How do I make Hudson/Jenkins fail if Sonar thresholds are breached?

I am using maven to build my java app, Jenkins for CI and Sonar for metrics. Currently I have a build job that creates the sonar report. (Triggered via a post-build step in Jenkins.) I would like to set this up to fail the build if certain…
laura
  • 2,951
  • 9
  • 44
  • 61
12
votes
2 answers

Grafana Prometheus Counter

I have trying to get exact count for an event in a Grafana visualization using Prometheus as timeseries DB. But the counter is showing incorrect records. I am getting a higher count for 2 days that I am getting 7 days, which definately points to…
user7510999
  • 351
  • 1
  • 4
  • 12
12
votes
5 answers

How to get the K most distant points, given their coordinates?

We have boring CSV with 10000 rows of ages (float), titles (enum/int), scores (float), .... We have N columns each with int/float values in a table. You can imagine this as points in ND space We want to pick K points that would have maximised…
DuckQueen
  • 772
  • 10
  • 62
  • 134
12
votes
3 answers

Apache Beam Counter/Metrics not available in Flink WebUI

I'm using Flink 1.4.1 and Beam 2.3.0, and would like to know is it possible to have metrics available in Flink WebUI (or anywhere at all), as in Dataflow WebUI ? I've used counter like: import org.apache.beam.sdk.metrics.Counter; import…
robosoul
  • 757
  • 7
  • 17
12
votes
2 answers

Keras custom RMSLE metric

How do I implement this metric in Keras? My code below gives the wrong result! Note that I'm undoing a previous log(x + 1) transformation via exp(x) - 1, also negative predictions are clipped to 0: def rmsle_cust(y_true, y_pred): first_log =…
Fernando
  • 7,785
  • 6
  • 49
  • 81
12
votes
2 answers

Collecting Application Metrics in Java (optionally .Net)

I want to be able to expose various time and count based metrics dynamically from my applications. Perf4j works out pretty well for the time ones but does not allow for count in a straightforward way that I'm aware of. for instance I can…
jtruelove
  • 3,306
  • 3
  • 25
  • 29
12
votes
1 answer

Cyclomatic Complexity and variants

Whats the diferrence between essential, design complexity, extended cyclomatic complexity, cyclomatic complexity? I'm checking this metrics using a IntelliJ IDEA plugin.
Kennedy Oliveira
  • 2,141
  • 2
  • 20
  • 25