Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 44 additions & 3 deletions dashboards/github-repo-traffic-downloads.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,44 @@
{
"__inputs": [],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "13.2.2"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "barchart",
"name": "Bar chart",
"version": ""
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "table",
"name": "Table",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"title": "GitHub Repo Traffic & Downloads",
"uid": "github-repo-traffic-downloads",
"tags": [
Expand Down Expand Up @@ -375,11 +415,11 @@
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "sum by (asset) (increase(github_release_asset_downloads{repo=~\"$repo\",asset!~\".*(checksums|\\\\.sbom|\\\\.sig|\\\\.pem|\\\\.json).*\"}[1d]))",
"expr": "sum by (asset) (label_replace(increase(github_release_asset_downloads{repo=~\"$repo\",asset!~\".*(checksums|\\\\.sbom|\\\\.sig|\\\\.pem|\\\\.json).*\"}[1d]), \"asset\", \"$1$2\", \"asset\", \"(.*?)[_-]v?[0-9]+\\\\.[0-9]+\\\\.[0-9]+(.*)\"))",
"legendFormat": "{{asset}}"
}
],
"description": "Release asset download_count is cumulative; this is its daily increase. History starts when the exporter first scraped the repo.",
"description": "Release asset download_count is cumulative; this is its daily increase, with the version stripped from asset names so each platform is one series. History starts when the exporter first scraped the repo.",
"fieldConfig": {
"defaults": {
"unit": "short",
Expand Down Expand Up @@ -1103,5 +1143,6 @@
"overrides": []
}
}
]
],
"version": 1
}
Loading