Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-org
gitlab-exporter
Commits
a86d7a1f
Commit
a86d7a1f
authored
Dec 19, 2016
by
Z.J. van de Weg
Browse files
Add active runner count
parent
b3b511b2
Pipeline
#25285
passed with stage
in 2 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/gitlab_monitor/database/row_count.rb
View file @
a86d7a1f
...
...
@@ -18,7 +18,8 @@ module GitLab
},
personal_snippets:
{
select: :snippets
,
where:
"type='PersonalSnippet'"
},
project_snippets:
{
select: :snippets
,
where:
"type='ProjectSnippet'"
},
users:
{
select: :users
}
users:
{
select: :users
},
active_runners:
{
select: :ci_runners
,
where:
"active=true AND contacted_at > current_date - 1"
}
}.
freeze
def
run
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment