Commit graph

15 commits

Author SHA1 Message Date
Ben Kochie
78a9991543
Cleanup ruby sampler metrics
* Use a simple counter for sampler duration instead of a histogram.
* Use a counter to collect GC time.
* Remove unused objects metric.
* Cleanup metric names to match Prometheus conventions.
* Prefix generic GC stats with `gc_stat`.
* Include worker label on memory and file descriptor metrics.
2018-06-22 14:12:22 +02:00
Yorick Peterse
d527b46802
Remove remaining traces of the Allocations Gem
In MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15834 we
removed use of the data produced by the Allocations Gem. However, we
never removed the code that just enables tracking of allocations. In
this commit we remove all remaining traces of this Gem.
2018-06-20 15:11:10 +02:00
Pawel Chojnacki
a8ebed6016 Make System.monotonic_time retun seconds represented by float with microsecond precision 2017-12-12 18:12:49 +01:00
Stan Hu
10f5446c33 Remove RubySampler#sample_objects for performance as well 2017-12-11 06:55:59 -08:00
Stan Hu
e1a8e5a509 Remove allocation tracking code from InfluxDB sampler for performance
On GitLab.com, InfluxSampler#sample_objects appears to take 1.2 s or so to
iterate through 1059 objects. This had led to delays of a couple hundred
milliseconds in processing in the main thread. Remove this code since it's not
really being used.

Closes gitlab-com/infrastructure#3250
2017-12-10 21:53:28 -08:00
Pawel Chojnacki
ee22a47d62 Update prometheus-client-mmap gem to highly optimized version
+ change string concatenation to help with GC pressure.
+ fix metric producing incompatible label sets
2017-12-07 17:47:23 +01:00
Jacopo
181cd299f9 Adds Rubocop rule for line break after guard clause
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-11-16 17:58:29 +01:00
Pawel Chojnacki
043545de3a Remove unnecessary namespace use 2017-11-02 18:11:44 +01:00
Pawel Chojnacki
547dd817a5 Fix rubocop warnings 2017-11-02 18:11:43 +01:00
Pawel Chojnacki
3cc28601f3 Cleanup sampling code and fix bug with samplers running without sleep 2017-11-02 18:10:57 +01:00
Pawel Chojnacki
b6d75b2955 remove common Base Sampler code 2017-11-02 18:10:57 +01:00
Pawel Chojnacki
3b1464803b Transaction and method instrumentation 2017-11-02 18:10:42 +01:00
Pawel Chojnacki
4c04444e22 Finished Ruby Sampler
+ Cleanup sampler, use latest Prometheus gem
2017-11-02 18:10:20 +01:00
Pawel Chojnacki
0bfe79019d Add samples total and cleanup 2017-11-02 18:09:21 +01:00
Pawel Chojnacki
03b38a4a8d Add GC sampler and small refactor of samplers 2017-11-02 18:09:21 +01:00