Skip to content

Add compute minute breakdown by runner to the card in Group Fleet Dashboard

API dependency for Add compute minute breakdown by project to the ... (#440207 - closed)

Related to Add compute minute breakdown by project to the ... (#440605 - closed)

  • GraphQL API for compute minutes breakdown by runner on the group level (leveraging Ci::Runners::GetUsageService)
  • Consider unifying the service/API endpoint as opposed to what we've done on the admin level, perhaps even unifying the API/services with top-level APIs

Proposal

GraphQL API for compute minutes breakdown by runner with fullPath argument

{
  runnerUsage(fullPath: "gitlab-org", runnerType: GROUP_TYPE, fromDate: "2023-01-01", toDate: "2023-12-31", runnersLimit: 3) {
    runner {
      id
      fullPath
    }
    ciBuildCount
    ciMinutesUsed
  }
}
  • Add fullPath argument to Resolvers::Ci::RunnerUsageByProjectResolver
  • Recreate ci_used_minutes_by_runner_daily_mv with a new project_id column, so that we can aggregate by projects
  • Adapt Ci::Runners::GetUsageByProjectService so that it returns the project IDs specified in fullPath

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.t

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.