summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2017-07-19 12:35:20 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2017-07-19 12:35:20 +0000
commit295a39bf8086d6dbe7b8f19ec33f73d4ded7d6b8 (patch)
tree26da933b7ecc38a84c24d9c16d22f1a0b402cd70
parent4c9378a89450cc1c4496578cc6a68638c5aa6702 (diff)
parentafba21f6a0a07a59bbe2aed2b25d6a50f8dc7e2e (diff)
downloadgitlab-ce-295a39bf8086d6dbe7b8f19ec33f73d4ded7d6b8.tar.gz
Merge branch 'bjk/pipelines_created_total' into 'master'
Update piplines created metric name See merge request !12960
-rw-r--r--app/services/ci/create_pipeline_service.rb2
-rw-r--r--doc/administration/monitoring/prometheus/gitlab_metrics.md1
-rw-r--r--spec/services/ci/create_pipeline_service_spec.rb2
3 files changed, 3 insertions, 2 deletions
diff --git a/app/services/ci/create_pipeline_service.rb b/app/services/ci/create_pipeline_service.rb
index 4f35255fb53..273386776fa 100644
--- a/app/services/ci/create_pipeline_service.rb
+++ b/app/services/ci/create_pipeline_service.rb
@@ -135,7 +135,7 @@ module Ci
end
def pipeline_created_counter
- @pipeline_created_counter ||= Gitlab::Metrics.counter(:pipelines_created_count, "Pipelines created count")
+ @pipeline_created_counter ||= Gitlab::Metrics.counter(:pipelines_created_total, "Counter of pipelines created")
end
end
end
diff --git a/doc/administration/monitoring/prometheus/gitlab_metrics.md b/doc/administration/monitoring/prometheus/gitlab_metrics.md
index 7c5505de8a2..6023112d615 100644
--- a/doc/administration/monitoring/prometheus/gitlab_metrics.md
+++ b/doc/administration/monitoring/prometheus/gitlab_metrics.md
@@ -39,6 +39,7 @@ In this experimental phase, only a few metrics are available:
| filesystem_readable | Gauge | Whether or not the filesystem is readable |
| http_requests_total | Counter | Rack request count |
| http_request_duration_seconds | Histogram | HTTP response time from rack middleware |
+| pipelines_created_total | Counter | Counter of pipelines created |
| rack_uncaught_errors_total | Counter | Rack connections handling uncaught errors count |
| redis_ping_timeout | Gauge | Whether or not the last redis ping timed out |
| redis_ping_success | Gauge | Whether or not the last redis ping succeeded |
diff --git a/spec/services/ci/create_pipeline_service_spec.rb b/spec/services/ci/create_pipeline_service_spec.rb
index 77c07b71c68..e71c462b99a 100644
--- a/spec/services/ci/create_pipeline_service_spec.rb
+++ b/spec/services/ci/create_pipeline_service_spec.rb
@@ -40,7 +40,7 @@ describe Ci::CreatePipelineService, :services do
it 'increments the prometheus counter' do
expect(Gitlab::Metrics).to receive(:counter)
- .with(:pipelines_created_count, "Pipelines created count")
+ .with(:pipelines_created_total, "Counter of pipelines created")
.and_call_original
pipeline