Removed various default metrics tags
While it's useful to keep track of the different versions (Ruby, GitLab, etc) doing so for every point wastes disk space and possibly also RAM (which InfluxDB is all to eager to gobble up). If we want to see the performance differences between different GitLab versions simply looking at the performance since the last release date should suffice.
This commit is contained in:
parent
7945cf4163
commit
c936e4e3c8
2 changed files with 2 additions and 8 deletions
|
@ -19,11 +19,8 @@ module Gitlab
|
|||
{
|
||||
series: @series,
|
||||
tags: @tags.merge(
|
||||
hostname: Metrics.hostname,
|
||||
ruby_engine: RUBY_ENGINE,
|
||||
ruby_version: RUBY_VERSION,
|
||||
gitlab_version: Gitlab::VERSION,
|
||||
process_type: Sidekiq.server? ? 'sidekiq' : 'rails'
|
||||
hostname: Metrics.hostname,
|
||||
process_type: Sidekiq.server? ? 'sidekiq' : 'rails'
|
||||
),
|
||||
values: @values,
|
||||
timestamp: @created_at.to_i * 1_000_000_000
|
||||
|
|
|
@ -39,9 +39,6 @@ describe Gitlab::Metrics::Metric do
|
|||
expect(hash[:tags]).to be_an_instance_of(Hash)
|
||||
|
||||
expect(hash[:tags][:hostname]).to be_an_instance_of(String)
|
||||
expect(hash[:tags][:ruby_engine]).to be_an_instance_of(String)
|
||||
expect(hash[:tags][:ruby_version]).to be_an_instance_of(String)
|
||||
expect(hash[:tags][:gitlab_version]).to be_an_instance_of(String)
|
||||
expect(hash[:tags][:process_type]).to be_an_instance_of(String)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue