Commit graph

13 commits

Author SHA1 Message Date
Martin Holst Swende
0abadecea1
metrics: align percentiles handling in resetting timer with rest of the codebase 2023-08-31 20:08:47 +02:00
Martin Holst Swende
fb8e300797
metrics: make resettingtimer not expose internal values 2023-08-31 20:08:46 +02:00
Martin Holst Swende
73687d9a60
metrics: split up resetting timer interface 2023-08-31 20:08:43 +02:00
Martin Holst Swende
7b9dfc72c1
metrics: split up counter, counterfloat64 2023-08-31 20:08:39 +02:00
Martin Holst Swende
36c31a691a
metrics: split gaugefloat64 interface 2023-08-31 20:05:29 +02:00
Martin Holst Swende
b7f8d9b4ce
metrics: split Gauge interface, fix tests, fix race on Sample 2023-08-31 19:53:23 +02:00
Martin Holst Swende
7e6f1a6869
metrics: separate updatable/readonly meter, timer and histogram 2023-08-31 19:51:30 +02:00
Jorge
53f3c2ae65
metrics, cmd/geth: informational metrics (prometheus, influxdb, opentsb) (#24877)
This chang creates a GaugeInfo metrics type for registering informational (textual) metrics, e.g. geth version number. It also improves the testing for backend-exporters, and uses a shared subpackage in 'internal' to provide sample datasets and ordered registry. 

Implements #21783

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-08-31 13:37:17 -04:00
turboboost55
7dc100714d
metrics: add cpu counters (#26796)
This PR adds counter metrics for the CPU system and the Geth process.
Currently the only metrics available for these items are gauges. Gauges are
fine when the consumer scrapes metrics data at the same interval as Geth
produces new values (every 3 seconds), but it is likely that most consumers
will not scrape that often. Intervals of 10, 15, or maybe even 30 seconds
are probably more common.

So the problem is, how does the consumer estimate what the CPU was doing in
between scrapes. With a counter, it's easy ... you just subtract two
successive values and divide by the time to get a nice, accurate average.
But with a gauge, you can't do that. A gauge reading is an instantaneous
picture of what was happening at that moment, but it gives you no idea
about what was going on between scrapes. Taking an average of values is
meaningless.
2023-03-23 14:13:50 +01:00
Justin Traglia
2c5648d891
all: fix some typos (#25551)
* Fix some typos

* Fix some mistakes

* Revert 4byte.json

* Fix an incorrect fix

* Change files to fails
2022-08-19 09:00:21 +03:00
s7v7nislands
7caa2d8163
all: replace strings.Replace with string.ReplaceAll (#24835) 2022-05-09 13:13:23 +03:00
Richard Patel
2f66a8d614
metrics/prometheus: define TYPE once, add tests (#21068)
* metrics/prometheus: define type once for histograms

* metrics/prometheus: test collector
2020-05-26 12:00:09 +03:00
Maxim Krasilnikov
31bc2a2434 metrics/prometheus: expose metrics in prometheus format too (#17077)
* metrics/prometheus: added prometheus http server and metrics collector

* metrics/prometheus: minor cleanups

* metrics/prometheus: named keys instead name in tag

* metrics/prometheus: minor typo cleanups, sorted report
2019-04-11 12:56:19 +03:00