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
c066734d
Commit
c066734d
authored
Jan 02, 2018
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing wiki counts to prometheus metrics
parent
8959eaf4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
changelogs/unreleased-ee/4414-add-wiki-total-synced-failed-to-prometheus-metrics.yml
...14-add-wiki-total-synced-failed-to-prometheus-metrics.yml
+5
-0
ee/app/models/geo_node_status.rb
ee/app/models/geo_node_status.rb
+3
-0
spec/ee/spec/services/geo/metrics_update_service_spec.rb
spec/ee/spec/services/geo/metrics_update_service_spec.rb
+6
-0
No files found.
changelogs/unreleased-ee/4414-add-wiki-total-synced-failed-to-prometheus-metrics.yml
0 → 100644
View file @
c066734d
---
title
:
Add missing wiki counts to prometheus metrics
merge_request
:
3875
author
:
type
:
fixed
ee/app/models/geo_node_status.rb
View file @
c066734d
...
...
@@ -11,6 +11,9 @@ class GeoNodeStatus < ActiveRecord::Base
repositories_count:
'Total number of repositories available on primary'
,
repositories_synced_count:
'Number of repositories synced on secondary'
,
repositories_failed_count:
'Number of repositories failed to sync on secondary'
,
wikis_count:
'Total number of wikis available on primary'
,
wikis_synced_count:
'Number of wikis synced on secondary'
,
wikis_failed_count:
'Number of wikis failed to sync on secondary'
,
lfs_objects_count:
'Total number of LFS objects available on primary'
,
lfs_objects_synced_count:
'Number of LFS objects synced on secondary'
,
lfs_objects_failed_count:
'Number of LFS objects failed to sync on secondary'
,
...
...
spec/ee/spec/services/geo/metrics_update_service_spec.rb
View file @
c066734d
...
...
@@ -19,6 +19,9 @@ describe Geo::MetricsUpdateService, :geo do
repositories_count:
10
,
repositories_synced_count:
1
,
repositories_failed_count:
2
,
wikis_count:
10
,
wikis_synced_count:
1
,
wikis_failed_count:
2
,
lfs_objects_count:
100
,
lfs_objects_synced_count:
50
,
lfs_objects_failed_count:
12
,
...
...
@@ -101,6 +104,9 @@ describe Geo::MetricsUpdateService, :geo do
expect
(
metric_value
(
:geo_repositories
)).
to
eq
(
10
)
expect
(
metric_value
(
:geo_repositories_synced
)).
to
eq
(
1
)
expect
(
metric_value
(
:geo_repositories_failed
)).
to
eq
(
2
)
expect
(
metric_value
(
:geo_wikis
)).
to
eq
(
10
)
expect
(
metric_value
(
:geo_wikis_synced
)).
to
eq
(
1
)
expect
(
metric_value
(
:geo_wikis_failed
)).
to
eq
(
2
)
expect
(
metric_value
(
:geo_lfs_objects
)).
to
eq
(
100
)
expect
(
metric_value
(
:geo_lfs_objects_synced
)).
to
eq
(
50
)
expect
(
metric_value
(
:geo_lfs_objects_failed
)).
to
eq
(
12
)
...
...
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