Skip to content

Commit 5a63142

Browse files
authored
Merge pull request #51 from vanchaudhary/feature/fix-user-metrics-timefield
Feature/fix user metrics timefield
2 parents cc2044d + d700198 commit 5a63142

9 files changed

Lines changed: 1417 additions & 11889 deletions

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ Based on the data from [Get Copilot User Metrics](https://docs.github.com/en/ent
307307

308308
**Horizontal bar chart showcasing top performers by adoption percentage:**
309309

310-
- **Adoption Score** = `(active_days / 28) × 100` - Percentage of days in the 28-day window with Copilot activity
310+
- **Adoption Score** = `(active_days / $__rangeDays) × 100` - Percentage of the distinct active days inside the range you have selected in Grafana (the denominator is computed from Grafana’s `$__rangeDays` so it matches 30, 90, 365-day filters automatically).
311+
- The Top 10 panel now runs directly on `copilot_user_metrics`, counts the unique `day` values per user inside the range, and normalizes by the computed range length (`$__rangeDays`). That way the percentage re-scales whenever you change the dashboard period even though the raw documents still come from repeated 28-day API snapshots stored in Elasticsearch.
311312
- Color-coded gradient indicating engagement level:
312313
- 🔴 Red (0-40%): Needs attention - may require training or support
313314
- 🟠 Orange (40-60%): Moderate usage - room for improvement

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ services:
5959
ELASTICSEARCH_URL: http://elasticsearch:9200
6060
GRAFANA_URL: http://grafana:80
6161
GRAFANA_USERNAME: admin
62-
GRAFANA_PASSWORD: copilot
62+
GRAFANA_PASSWORD: Copilot2024
6363
restart: "no"
6464

6565
cpuad-updater:

0 commit comments

Comments
 (0)