Skip to content

Instantly share code, notes, and snippets.

@ilyesAj
Created June 2, 2022 15:28
Show Gist options
  • Save ilyesAj/cb980a875bc65d897e4ed3109e86a07b to your computer and use it in GitHub Desktop.
Save ilyesAj/cb980a875bc65d897e4ed3109e86a07b to your computer and use it in GitHub Desktop.
external metric for gitlab runner
external:
- seriesQuery: 'gitlab_runner_concurrent{job=~".*gitlab-runner-build.*"}'
resources:
overrides:
namespace:
resource: namespace
name:
matches: "gitlab_runner_concurrent"
as: "gitlab_runner_jobs_builds_concurrent_saturation"
metricsQuery: gitlab_runner_jobs_build_total/sum(gitlab_runner_concurrent{job=~".*gitlab-runner-build.*"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment