2020-06-23 00:09:42 +05:30
---
stage: Monitor
2021-01-03 14:25:43 +05:30
group: Health
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-06-23 00:09:42 +05:30
---
2021-03-11 19:13:27 +05:30
# Monitoring GitHub imports **(FREE SELF)**
2018-03-17 18:26:18 +05:30
2020-10-24 23:57:45 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/14731) in GitLab 10.2.
2018-03-17 18:26:18 +05:30
The GitHub importer exposes various Prometheus metrics that you can use to
monitor the health and progress of the importer.
## Import Duration Times
| Name | Type |
|------------------------------------------|-----------|
| `github_importer_total_duration_seconds` | histogram |
2021-01-29 00:20:46 +05:30
This metric tracks the total time, in seconds, spent importing a project (from
2018-03-17 18:26:18 +05:30
project creation until the import process finishes), for every imported project.
The name of the project is stored in the `project` label in the format
2021-01-29 00:20:46 +05:30
`namespace/name` (such as `gitlab-org/gitlab` ).
2018-03-17 18:26:18 +05:30
## Number of imported projects
| Name | Type |
|-------------------------------------|---------|
| `github_importer_imported_projects` | counter |
This metric tracks the total number of projects imported over time. This metric
does not expose any labels.
## Number of GitHub API calls
| Name | Type |
|---------------------------------|---------|
| `github_importer_request_count` | counter |
This metric tracks the total number of GitHub API calls performed over time, for
all projects. This metric does not expose any labels.
## Rate limit errors
| Name | Type |
|-----------------------------------|---------|
| `github_importer_rate_limit_hits` | counter |
This metric tracks the number of times we hit the GitHub rate limit, for all
projects. This metric does not expose any labels.
## Number of imported issues
| Name | Type |
|-----------------------------------|---------|
| `github_importer_imported_issues` | counter |
This metric tracks the number of imported issues across all projects.
The name of the project is stored in the `project` label in the format
2021-01-29 00:20:46 +05:30
`namespace/name` (such as `gitlab-org/gitlab` ).
2018-03-17 18:26:18 +05:30
## Number of imported pull requests
| Name | Type |
|------------------------------------------|---------|
| `github_importer_imported_pull_requests` | counter |
This metric tracks the number of imported pull requests across all projects.
The name of the project is stored in the `project` label in the format
2021-01-29 00:20:46 +05:30
`namespace/name` (such as `gitlab-org/gitlab` ).
2018-03-17 18:26:18 +05:30
## Number of imported comments
| Name | Type |
|----------------------------------|---------|
| `github_importer_imported_notes` | counter |
This metric tracks the number of imported comments across all projects.
The name of the project is stored in the `project` label in the format
2021-01-29 00:20:46 +05:30
`namespace/name` (such as `gitlab-org/gitlab` ).
2018-03-17 18:26:18 +05:30
## Number of imported pull request review comments
| Name | Type |
|---------------------------------------|---------|
| `github_importer_imported_diff_notes` | counter |
This metric tracks the number of imported comments across all projects.
The name of the project is stored in the `project` label in the format
2021-01-29 00:20:46 +05:30
`namespace/name` (such as `gitlab-org/gitlab` ).
2018-03-17 18:26:18 +05:30
## Number of imported repositories
| Name | Type |
|-----------------------------------------|---------|
| `github_importer_imported_repositories` | counter |
This metric tracks the number of imported repositories across all projects. This
metric does not expose any labels.