Commit 839350e2 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch '215461-geo-track-packagefile-sync-counts-in-geo-node-statuses-2-docs' into 'master'

Document  "Geo: Track PackageFile sync counts in Geo node statuses"

Closes #215461

See merge request gitlab-org/gitlab!33962
parents b0ef53b0 e7a66ca5
......@@ -356,7 +356,8 @@ Widgets should now be replicated by Geo!
end
```
1. Add fields `widget_count`, `widget_checksummed_count`, and `widget_checksum_failed_count`
1. Add fields `widget_count`, `widget_checksummed_count`, `widget_checksum_failed_count`,
`widget_synced_count` and `widget_failed_count`
to `GeoNodeStatus#RESOURCE_STATUS_FIELDS` array in `ee/app/models/geo_node_status.rb`.
1. Add the same fields to `GeoNodeStatus#PROMETHEUS_METRICS` hash in
`ee/app/models/geo_node_status.rb`.
......@@ -370,6 +371,8 @@ Widgets should now be replicated by Geo!
self.widget_count = Geo::WidgetReplicator.model.count
self.widget_checksummed_count = Geo::WidgetReplicator.checksummed.count
self.widget_checksum_failed_count = Geo::WidgetReplicator.checksum_failed.count
self.widget_synced_count = Geo::WidgetReplicator.synced_count
self.widget_failed_count = Geo::WidgetReplicator.failed_count
```
1. Make sure `Widget` model has `checksummed` and `checksum_failed` scopes.
......@@ -450,7 +453,7 @@ Widgets should now be verified by Geo!
end
```
1. Create `ee/app/graphql/types/geo/package_file_registry_type.rb`:
1. Create `ee/app/graphql/types/geo/widget_registry_type.rb`:
```ruby
# frozen_string_literal: true
......
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