Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
990abe5b
Commit
990abe5b
authored
Feb 05, 2021
by
Marius Bobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the project label from histogram metrics
parent
29ec9856
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
app/services/ci/prometheus_metrics/observe_histograms_service.rb
...vices/ci/prometheus_metrics/observe_histograms_service.rb
+1
-1
doc/administration/monitoring/prometheus/gitlab_metrics.md
doc/administration/monitoring/prometheus/gitlab_metrics.md
+3
-3
spec/services/ci/prometheus_metrics/observe_histograms_service_spec.rb
.../ci/prometheus_metrics/observe_histograms_service_spec.rb
+1
-1
No files found.
app/services/ci/prometheus_metrics/observe_histograms_service.rb
View file @
990abe5b
...
@@ -40,7 +40,7 @@ module Ci
...
@@ -40,7 +40,7 @@ module Ci
def
observe
(
data
)
def
observe
(
data
)
histogram
=
find_histogram
(
data
[
:name
])
histogram
=
find_histogram
(
data
[
:name
])
histogram
.
observe
({
project:
project
.
full_path
},
data
[
:value
].
to_f
)
histogram
.
observe
({},
data
[
:value
].
to_f
)
end
end
def
find_histogram
(
name
)
def
find_histogram
(
name
)
...
...
doc/administration/monitoring/prometheus/gitlab_metrics.md
View file @
990abe5b
...
@@ -119,9 +119,9 @@ The following metrics are available:
...
@@ -119,9 +119,9 @@ The following metrics are available:
|
`gitlab_external_http_duration_seconds`
| Counter | 13.8 | Duration in seconds spent on each HTTP call to external systems | |
|
`gitlab_external_http_duration_seconds`
| Counter | 13.8 | Duration in seconds spent on each HTTP call to external systems | |
|
`gitlab_external_http_exception_total`
| Counter | 13.8 | Total number of exceptions raised when making external HTTP calls | |
|
`gitlab_external_http_exception_total`
| Counter | 13.8 | Total number of exceptions raised when making external HTTP calls | |
|
`ci_report_parser_duration_seconds`
| Histogram | 13.9 | Time to parse CI/CD report artifacts |
`parser`
|
|
`ci_report_parser_duration_seconds`
| Histogram | 13.9 | Time to parse CI/CD report artifacts |
`parser`
|
|
`pipeline_graph_link_calculation_duration_seconds`
| Histogram | 13.9 | Total time spent calculating links, in seconds |
`project`
|
|
`pipeline_graph_link_calculation_duration_seconds`
| Histogram | 13.9 | Total time spent calculating links, in seconds |
|
|
`pipeline_graph_links_total`
| Histogram | 13.9 | Number of links per graph |
`project`
|
|
`pipeline_graph_links_total`
| Histogram | 13.9 | Number of links per graph |
|
|
`pipeline_graph_links_per_job_ratio`
| Histogram | 13.9 | Ratio of links to job per graph |
`project`
|
|
`pipeline_graph_links_per_job_ratio`
| Histogram | 13.9 | Ratio of links to job per graph |
|
## Metrics controlled by a feature flag
## Metrics controlled by a feature flag
...
...
spec/services/ci/prometheus_metrics/observe_histograms_service_spec.rb
View file @
990abe5b
...
@@ -81,6 +81,6 @@ RSpec.describe Ci::PrometheusMetrics::ObserveHistogramsService do
...
@@ -81,6 +81,6 @@ RSpec.describe Ci::PrometheusMetrics::ObserveHistogramsService do
end
end
def
histogram_data
(
name
=
:pipeline_graph_link_calculation_duration_seconds
)
def
histogram_data
(
name
=
:pipeline_graph_link_calculation_duration_seconds
)
Gitlab
::
Metrics
.
registry
.
get
(
name
)
&
.
get
({
project:
project
.
full_path
})
Gitlab
::
Metrics
.
registry
.
get
(
name
)
&
.
get
({})
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment