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
96 changes: 95 additions & 1 deletion dashboards/github-repo-traffic-downloads.json
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@
"x": 0,
"y": 33,
"w": 4,
"h": 4
"h": 3
},
"targets": [
{
Expand Down Expand Up @@ -1142,6 +1142,100 @@
"defaults": {},
"overrides": []
}
},
{
"id": 21,
"type": "stat",
"title": "Views (selected range)",
"description": "Sum of daily views over the selected range.",
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"gridPos": {
"x": 0,
"y": 36,
"w": 4,
"h": 3
},
"targets": [
{
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "sum(max by (repo, date) (max_over_time(github_repo_traffic_views_daily{repo=~\"$repo\"}[$__range])))",
"instant": true,
"range": false
}
],
"options": {
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"colorMode": "none",
"graphMode": "none",
"textMode": "value"
},
"fieldConfig": {
"defaults": {
"unit": "short",
"noValue": "-"
},
"overrides": []
}
},
{
"id": 22,
"type": "stat",
"title": "Clones (selected range)",
"description": "Sum of daily clones over the selected range.",
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"gridPos": {
"x": 0,
"y": 39,
"w": 4,
"h": 3
},
"targets": [
{
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "sum(max by (repo, date) (max_over_time(github_repo_traffic_clones_daily{repo=~\"$repo\"}[$__range])))",
"instant": true,
"range": false
}
],
"options": {
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"colorMode": "none",
"graphMode": "none",
"textMode": "value"
},
"fieldConfig": {
"defaults": {
"unit": "short",
"noValue": "-"
},
"overrides": []
}
}
],
"version": 1
Expand Down
Loading