Commit f29506f6 authored by Sean McGivern's avatar Sean McGivern

Merge branch '4414-add-wiki-total-synced-failed-to-prometheus-metrics' into 'master'

Resolve "Add wiki total/synced/failed to prometheus metrics"

Closes #4414

See merge request gitlab-org/gitlab-ee!3875
parents 72a0a866 9c2051a1
---
title: Add missing wiki counts to prometheus metrics
merge_request: 3875
author:
type: fixed
......@@ -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',
......
......@@ -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: 2,
wikis_failed_count: 3,
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(2)
expect(metric_value(:geo_wikis_failed)).to eq(3)
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment