Move metrics collector queries to config (#28549)

This commit is contained in:
Torkel Ödegaard 2020-10-26 19:43:58 +01:00 committed by GitHub
parent 069e2b0ced
commit 3b9523fad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 2 deletions

28
.github/metrics-collector.json vendored Normal file
View File

@ -0,0 +1,28 @@
{
"queries": [
{
"name": "type_bug",
"query": "label:\"type/bug\" is:open"
},
{
"name": "needs_investigation",
"query": "label:\"needs investigation\" is:open"
},
{
"name": "needs_more_info",
"query": "label:\"needs more info\" is:open"
},
{
"name": "unlabeled",
"query": "is:open is:issue no:label"
},
{
"name": "open_prs",
"query": "is:open is:pr"
},
{
"name": "milestone_7_4_open",
"query": "is:open is:issue milestone:7.4"
}
]
}

View File

@ -22,4 +22,4 @@ jobs:
with:
metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}}
token: ${{secrets.GH_BOT_ACCESS_TOKEN}}
config-path: commands
configPath: commands

View File

@ -8,7 +8,7 @@
#
# https://github.com/grafana/grafana-github-actions/blob/main/metrics-collector/index.ts
#
name: Github issue metrics collection
name: Github issue metrics collection
on:
schedule:
- cron: "*/10 * * * *"
@ -32,3 +32,4 @@ jobs:
with:
metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}}
token: ${{secrets.GH_BOT_ACCESS_TOKEN}}
configPath: "metrics-collector"