监控 GitHub 导入

  • Tier: 基础版,专业版,旗舰版
  • Offering: 私有化部署

极狐 GitLab 的 GitHub 导入工具公开了各种 Prometheus 指标,您可以使用这些指标来监控导入工具的健康状况和进度。

导入持续时间#

NameType
github_importer_total_duration_secondshistogram

此指标跟踪每个导入项目(从项目创建到导入过程完成)的总时间(以秒为单位)。项目的名称存储在 project 标签中,格式为 namespace/name(例如 gitlab-org/gitlab)。

导入项目的数量#

NameType
github_importer_imported_projectscounter

此指标跟踪随时间推移导入的项目总数。此指标不显示任何标签。

GitHub API 调用次数#

NameType
github_importer_request_countcounter

此指标跟踪所有项目随时间执行的 GitHub API 调用的总次数。此指标不显示任何标签。

速率限制错误#

NameType
github_importer_rate_limit_hitscounter

此指标跟踪所有项目中我们达到 GitHub 速率限制的次数。此指标不显示任何标签。

导入议题的数量#

NameType
github_importer_imported_issuescounter

此指标跟踪所有项目中导入的议题数量。项目的名称存储在 project 标签中,格式为 namespace/name(例如 gitlab-org/gitlab)。

导入拉取请求的数量#

NameType
github_importer_imported_pull_requestscounter

此指标跟踪所有项目中导入的拉取请求数量。项目的名称存储在 project 标签中,格式为 namespace/name(例如 gitlab-org/gitlab)。

导入评论的数量#

NameType
github_importer_imported_notescounter

此指标跟踪所有项目中导入的评论数量。项目的名称存储在 project 标签中,格式为 namespace/name(例如 gitlab-org/gitlab)。

导入拉取请求审查评论的数量#

NameType
github_importer_imported_diff_notescounter

此指标跟踪所有项目中导入的评论数量。项目的名称存储在 project 标签中,格式为 namespace/name(例如 gitlab-org/gitlab)。

导入仓库的数量#

NameType
github_importer_imported_repositoriescounter

此指标跟踪所有项目中导入的仓库数量。此指标不显示任何标签。