RepositoryCollector runs on startup
the RepositoryCollect runs on startup. This is happening because on a register call, the prometheus client calls Describe()
http://gitlab.com/gitlab-org/gitaly/-/blob/master/internal/praefect/datastore/collector.go#L51
However, in our code, we are are calling DescribeByCollect http://gitlab.com/gitlab-org/gitaly/-/blob/master/internal/praefect/datastore/collector.go#L51
Which will then call the Collect
method, which runs the query.
Since we don't want this query to run on startup, we should not call DescribeByCollect