Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-20Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot
2020-06-18Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot
2020-05-20Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot
2019-12-17Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-10-16Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-05Remove feature flags starting with `prometheus_transaction_`Jacopo
Those feature flags were always enabled so we can remove them safely.
2019-09-04Avoid calling freeze on already frozen strings in lib/gitlabdineshpanda
2019-04-04Filters branch and path labels for metricsRyan Cobb
2019-02-14Update Metrics references to Object pathSarah Yasonik
On reload, references to Metrics within classes in the Gitlab::Metrics module fail. Update all references to ::Gitlab::Metrics so that constant lookup finds the right module in development. This fix should not impact production.
2018-11-17Enable even more frozen string for lib/gitlabgfyoung
Enables frozen string for the following: * lib/gitlab/hook_data/**/*.rb * lib/gitlab/i18n/**/*.rb * lib/gitlab/import/**/*.rb * lib/gitlab/import_export/**/*.rb * lib/gitlab/kubernetes/**/*.rb * lib/gitlab/legacy_github_import/**/*.rb * lib/gitlab/manifest_import/**/*.rb * lib/gitlab/metrics/**/*.rb * lib/gitlab/middleware/**/*.rb Partially addresses gitlab-org/gitlab-ce#47424.
2018-06-11Adjust SQL and transaction Prometheus bucketsYorick Peterse
This allows us to better calculate Apdex scores, instead of having to use the 0.1 and 1.0 buckets.
2018-02-20Only use features for eventsPawel Chojnacki
2018-02-20Put all event metrics exposed to prometheus behind a feature flagPawel Chojnacki
2018-01-29Rename Concern -> MethodsPawel Chojnacki
2018-01-29fix typo in the bucketsPawel Chojnacki
2018-01-29Refactor metrics to use metrics dsl notationPawel Chojnacki
2018-01-29Fix rubocop warningsPawel Chojnacki
2018-01-29Put View instrumentation and transaction memory use behind featurePawel Chojnacki
2018-01-29Fix code after refactoringPawel Chojnacki
2018-01-29Refactor transaction metricsPawel Chojnacki
2017-12-20use in_milliseconds rails helperPawel Chojnacki
2017-12-12Make `System.monotonic_time` retun seconds represented by float with ↵Pawel Chojnacki
microsecond precision
2017-11-02Use Mutex to guard metrics creation in transaction. Switch action view to ↵Pawel Chojnacki
threadsafe instance variables
2017-11-02Fix sidekiq middleware testsPawel Chojnacki
2017-11-02Tests for Web transaction and remove simple transactonPawel Chojnacki
2017-11-02Move labels tests from Metrics rack spec to Transaction specPawel Chojnacki
2017-11-02Fix Active record and transaction specsPawel Chojnacki
2017-11-02Split call name to module and method namePawel Chojnacki
2017-11-02More parsable labels in method performance measurementsPawel Chojnacki
2017-11-02Make transaction labels more readablePawel Chojnacki
2017-11-02Transaction needs to be able to describe controller action by itselfPawel Chojnacki
2017-11-02Tune bucket sizes an action labelsPawel Chojnacki
2017-11-02Add action tag to more metricsPawel Chojnacki
2017-11-02Introduce missing Action conceptPawel Chojnacki
2017-11-02Cleanup transaction metricsPawel Chojnacki
2017-11-02Cleanup sampling code and fix bug with samplers running without sleepPawel Chojnacki
2017-11-02Remove transaction tags and map transaction metrics to prometheusPawel Chojnacki
+ clean transaction metrics + Gemfile.lock file update
2017-11-02Transaction and method instrumentationPawel Chojnacki
2017-02-23Enable Style/MutableConstantDouwe Maan
2016-08-17Tracking of custom eventsYorick Peterse
GitLab Performance Monitoring is now able to track custom events not directly related to application performance. These events include the number of tags pushed, repositories created, builds registered, etc. The use of these events is to get a better overview of how a GitLab instance is used and how that may affect performance. For example, a large number of Git pushes may have a negative impact on the underlying storage engine. Events are stored in the "events" measurement and are not prefixed with "rails_" or "sidekiq_", this makes it easier to query events with the same name triggered from different parts of the application. All events being stored in the same measurement also makes it easier to downsample data. Currently the following events are tracked: * Creating repositories * Removing repositories * Changing the default branch of a repository * Pushing a new tag * Removing an existing tag * Pushing a commit (along with the branch being pushed to) * Pushing a new branch * Removing an existing branch * Importing a repository (along with the URL we're importing) * Forking a repository (along with the source/target path) * CI builds registered (and when no build could be found) * CI builds being updated * Rails and Sidekiq exceptions Fixes gitlab-org/gitlab-ce#13720
2016-07-28Reduce instrumentation overheadYorick Peterse
This reduces the overhead of the method instrumentation code primarily by reducing the number of method calls. There are also some other small optimisations such as not casting timing values to Floats (there's no particular need for this), using Symbols for method call metric names, and reducing the number of Hash lookups for instrumented methods. The exact impact depends on the code being executed. For example, for a method that's only called once the difference won't be very noticeable. However, for methods that are called many times the difference can be more significant. For example, the loading time of a large commit (nrclark/dummy_project@81ebdea5df2fb42e59257cb3eaad671a5c53ca36) was reduced from around 19 seconds to around 15 seconds using these changes.
2016-06-28Use clock_gettime for all performance timestampsYorick Peterse
Process.clock_gettime allows getting the real time in nanoseconds as well as allowing one to get a monotonic timestamp. This offers greater accuracy without the overhead of having to allocate a Time instance. In general using Time.now/Time.new is about 2x slower than using Process.clock_gettime(). For example: require 'benchmark/ips' Benchmark.ips do |bench| bench.report 'Time.now' do Time.now.to_f end bench.report 'clock_gettime' do Process.clock_gettime(Process::CLOCK_MONOTONIC, :millisecond) end bench.compare! end Running this benchmark gives: Calculating ------------------------------------- Time.now 108.052k i/100ms clock_gettime 125.984k i/100ms ------------------------------------------------- Time.now 2.343M (± 7.1%) i/s - 11.670M clock_gettime 4.979M (± 0.8%) i/s - 24.945M Comparison: clock_gettime: 4979393.8 i/s Time.now: 2342986.8 i/s - 2.13x slower Another benefit of using Process.clock_gettime() is that we can simplify the code a bit since it can give timestamps in nanoseconds out of the box.
2016-06-17Track method call times/counts as a single metricYorick Peterse
Previously we'd create a separate Metric instance for every method call that would exceed the method call threshold. This is problematic because it doesn't provide us with information to accurately get the _total_ execution time of a particular method. For example, if the method "Foo#bar" was called 4 times with a runtime of ~10 milliseconds we'd end up with 4 different Metric instances. If we were to then get the average/95th percentile/etc of the timings this would be roughly 10 milliseconds. However, the _actual_ total time spent in this method would be around 40 milliseconds. To solve this problem we now create a single Metric instance per method. This Metric instance contains the _total_ real/CPU time and the call count for every instrumented method.
2016-01-12Track memory allocated during a transactionYorick Peterse
This gives a very rough estimate of how much memory is allocated during a transaction. This only works reliably when using a single-threaded application server and a Ruby implementation with a GIL as otherwise memory allocated by other threads might skew the statistics. Sadly there's no way around this as Ruby doesn't provide a reliable way of gathering accurate object sizes upon allocation on a per-thread basis.
2016-01-11Tag all transaction metrics with an "action" tagYorick Peterse
Without this it's impossible to find out what methods/views/queries are executed by a certain controller or Sidekiq worker. While this will increase the total number of series it should stay within reasonable limits due to the amount of "actions" being small enough.
2016-01-07Store request methods/URIs as valuesYorick Peterse
Since filtering by these values is very rare (they're mostly just displayed as-is) we don't need to waste any index space by saving them as tags. By storing them as values we also greatly reduce the number of series in InfluxDB.
2016-01-07Removed UUIDs from metrics transactionsYorick Peterse
While useful for finding out what methods/views belong to a transaction this might result in too much data being stored in InfluxDB.
2016-01-04Automatically prefix transaction series namesYorick Peterse
This ensures Rails and Sidekiq transactions are split into the series "rails_transactions" and "sidekiq_transactions" respectively.
2016-01-04Ability to increment custom transaction valuesYorick Peterse
This will be used to store/increment the total query/view rendering timings on a per transaction basis. This in turn can greatly reduce the amount of metrics stored.
2015-12-31Use separate series for Rails/Sidekiq transactionsYorick Peterse
This removes the need for tagging all metrics with a "process_type" tag.