Skip to content

Instantly share code, notes, and snippets.

@rdemoraes
Created March 15, 2022 12:48
Show Gist options
  • Save rdemoraes/455b31a97561e8b8ab5c3d1d60e7b543 to your computer and use it in GitHub Desktop.
Save rdemoraes/455b31a97561e8b8ab5c3d1d60e7b543 to your computer and use it in GitHub Desktop.
prometheus-adapter-values.yaml
rules:
default: true
custom: []
# Mounts a configMap with pre-generated rules for use. Overrides the
# default, custom, external and resource entries
existing:
external:
# External metric for Gitlab Runner: Devops Group
- seriesQuery: 'gitlab_runner_jobs{job=~".*your-gitlab-runner-name.*"}'
resources:
template: <<.Resource>>
name:
matches: "gitlab_runner_jobs"
as: "gitlab_runner_jobs_devops_group"
metricsQuery: sum(gitlab_runner_jobs{job=~".*your-gitlab-runner-name.*"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment