Adoption and Activity Metrics
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 9 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Monitor Enterprise Usage: Adoption and Activity Metrics
Introduction: Why Measuring GitHub Usage Matters
In the modern software development lifecycle, GitHub has evolved from a simple code hosting platform into the central nervous system of engineering organizations. For enterprise administrators, simply providing access to repositories is no longer sufficient. To ensure that your investment in GitHub is driving actual value, you must move beyond basic user management and start tracking how your teams interact with the platform. This is where adoption and activity metrics come into play.
Adoption metrics tell you whether your developers are actually using the tools you provide, while activity metrics reveal the health and maturity of your development practices. Without these insights, you are essentially flying blind. You might be paying for thousands of licenses, but if your teams are not utilizing automation, security scanning, or collaborative features, you are missing out on the primary benefits of the platform. Understanding these metrics allows you to identify bottlenecks, justify budget allocations, and pinpoint teams that might need additional training or support.
This lesson explores the quantitative and qualitative data points that define a healthy GitHub enterprise environment. We will cover how to collect this data, how to interpret it, and how to turn those numbers into actionable improvements for your engineering culture.
Not read yet
The Landscape of GitHub Metrics
Before diving into the technical implementation, it is helpful to categorize what we are actually measuring. Enterprise metrics generally fall into four primary buckets: User Engagement, Repository Activity, Security Posture, and Automation Efficiency.
1. User Engagement
This category tracks how often and in what ways your employees log in and interact with the platform. Key indicators include:
- Active Users: The number of unique users who have performed a write action (like a commit or a pull request) within a specific timeframe.
- Feature Adoption: How many users are utilizing specific tools like GitHub Copilot, GitHub Projects, or GitHub Actions.
- Collaboration Patterns: Frequency of code reviews, mentions, and issue assignments.
2. Repository Activity
This measures the heartbeat of your codebase. It helps distinguish between active projects and "zombie" repositories that might be cluttering your organization.
- Commit Frequency: How often code is being pushed to the main branch.
- Pull Request Velocity: The time it takes for a pull request to move from creation to merge.
- Issue Throughput: The volume of bugs reported versus bugs resolved over time.
3. Security Posture
In an enterprise context, security metrics are arguably the most important. These metrics track how well your organization is managing risk.
- Dependabot Usage: The number of repositories that have automated dependency updates enabled.
- Secret Scanning Alerts: The volume of hardcoded secrets detected and the time taken to remediate them.
- Code Scanning Coverage: The percentage of repositories that have static analysis tools active.
4. Automation Efficiency
This measures the impact of your CI/CD pipelines.
- Action Run Success Rate: What percentage of your automated builds are succeeding versus failing.
- Workflow Duration: How long it takes for a full test suite to run.
- Compute Usage: How many minutes of GitHub Actions runner time are being consumed, which directly relates to your operational costs.
Not read yet
Collecting Data: The Tools at Your Disposal
To capture these metrics, you need to interface with the GitHub API or utilize the built-in reporting features provided by GitHub Enterprise.
The GitHub GraphQL API
The GraphQL API is the preferred method for extracting granular data. Unlike the REST API, which requires multiple calls to gather related data, GraphQL allows you to fetch exactly what you need in a single request. This is critical when you are querying thousands of repositories across an entire enterprise.
Callout: GraphQL vs. REST for Analytics When building an analytics dashboard for your enterprise, always lean toward the GraphQL API. Because enterprise data is hierarchical (Enterprise -> Organizations -> Repositories -> Pull Requests), GraphQL’s nested query structure significantly reduces the number of requests you need to make, preventing rate-limiting issues and decreasing the total execution time of your data collection scripts.
Example: Fetching Repository Activity
The following code snippet demonstrates how to use the GitHub GraphQL API to fetch the number of pull requests for a specific repository. You can iterate this logic across all repositories in your organization to build a comprehensive dashboard.
// A simple Node.js example using the GitHub GraphQL API
const query = `
query($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {
pullRequests(first: 100, states: OPEN) {
totalCount
}
issues(first: 100, states: OPEN) {
totalCount
}
}
}
`;
// This function would be part of a larger script
// that iterates through your organization's repositories.
async function getRepoStats(owner, name) {
const response = await fetch('https://api.github.com/graphql', {
method: 'POST',
headers: { 'Authorization': `Bearer ${process.env.GITHUB_TOKEN}` },
body: JSON.stringify({ query, variables: { owner, name } })
});
return response.json();
}
GitHub Enterprise Audit Logs
For compliance and security metrics, the Audit Log is your source of truth. It records every action taken within the enterprise, from user logins to configuration changes. You can stream these logs to a SIEM (Security Information and Event Management) system like Splunk or Datadog to create real-time alerts for suspicious behavior or to track long-term adoption trends.
Not read yet
Step-by-Step: Building an Adoption Dashboard
Building a dashboard doesn't have to be a multi-month project. You can start by focusing on three key metrics: Active Users, Repository Growth, and Actions Usage.
Step 1: Define the Timeframe
Set a consistent reporting interval, such as a rolling 30-day window. This helps normalize the data and prevents temporary spikes or holidays from skewing your perspective of "normal" behavior.
Step 2: Extract Data
Use a script (Python or Node.js) to query your organization's data. Store this in a simple database or a CSV file if you are just starting out. Focus on:
total_users: Count of licensed seats.active_users: Count of users who performed apushorpull_requestevent in the last 30 days.repo_count: Total number of repositories created.
Step 3: Visualize
Use a tool like Grafana, PowerBI, or even a simple Google Sheet to visualize the trend line. Seeing a downward trend in active users might indicate a lack of training, while a flatline in repo creation might suggest your developers are struggling with the platform's complexity.
Note: When measuring "Active Users," ensure you are excluding service accounts and bots. If you don't filter these out, your adoption metrics will be artificially inflated by automated processes rather than actual human engineers.
Not read yet
Best Practices for Interpreting Metrics
Data is only as good as the context behind it. Here are several best practices for ensuring your metrics lead to positive outcomes rather than "vanity metrics."
1. Avoid "Gaming" the Numbers
If you tie performance bonuses to the number of commits or pull requests, developers will simply open more pull requests. This leads to "noise" in your repository and degrades the quality of your code review process. Always combine activity metrics with quality metrics (such as test coverage or incident frequency).
2. Focus on Trends, Not Snapshots
A single week of low activity might be due to a major product launch, a holiday, or a global pandemic. Look for long-term patterns over months or quarters. A consistent decline in activity is a signal to investigate, while a steady increase is a sign of healthy adoption.
3. Segment Your Data
An enterprise with 5,000 developers is not a monolith. Segment your data by department, team, or geography. You might find that the "Backend" team has high adoption of GitHub Actions, while the "Frontend" team is still using legacy Jenkins pipelines. This allows you to provide targeted training where it is actually needed.
4. Share Metrics with the Teams
Transparency builds trust. When you share activity metrics with the engineering teams, do it in a way that is supportive. Frame it as: "We noticed that Team A is seeing a 40% reduction in build time due to GitHub Actions caching. Could we share those configurations with the rest of the org?" This turns metrics into a tool for collaborative improvement rather than a tool for surveillance.
Not read yet
Common Pitfalls and How to Avoid Them
Even with the best intentions, it is easy to fall into traps that make your metrics misleading or harmful.
The "Zombie Repository" Trap
Organizations often have thousands of repositories that haven't been touched in years. If your metrics include these in your "Activity" reports, your percentage of active projects will look artificially low.
- The Fix: Implement a repository archiving policy. Automate the process of flagging inactive repositories and asking the owners if they should be archived. This cleans up your data and your search results.
The "Feature-Fatigue" Trap
GitHub releases new features constantly. It is tempting to track the adoption of every single feature (e.g., "Are we using GitHub Issues? GitHub Projects? GitHub Wikis?").
- The Fix: Focus on the features that align with your organizational goals. If your goal is to move to "DevSecOps," focus your metrics on Secret Scanning, Code Scanning, and Dependabot. Ignore the rest until they become a priority.
The "Rate Limit" Trap
When querying data for a large enterprise, you will hit API rate limits very quickly.
- The Fix: Use the
rateLimitfield in your GraphQL queries to monitor your remaining capacity. Implement exponential backoff in your scripts to pause and resume when you hit limits. For massive enterprises, consider using the GitHub Enterprise Export feature to get daily snapshots instead of live API calls.
Callout: The Risk of Surveillance Culture The most critical danger in monitoring developer activity is the perception of surveillance. If developers feel that their every click is being tracked to evaluate their personal performance, they will stop using the platform authentically. Always emphasize that these metrics are for system health and process improvement, not for individual employee evaluation.
Not read yet
Advanced Analysis: Correlating Metrics
True mastery of enterprise monitoring comes from correlating different data streams. This is where you move from "observing" to "optimizing."
Correlation Example: Developer Experience and Velocity
Consider the correlation between "Build Success Rate" and "Pull Request Velocity." If you see a team with a high failure rate in their CI pipelines, you will likely see a corresponding increase in the time it takes for their pull requests to be merged. By identifying the teams with the highest CI failure rates, you can provide them with better infrastructure or training, which directly improves their speed of delivery.
Correlation Example: Security and Maintenance
Compare "Dependabot Alert Age" with "Repository Activity." You will often find that inactive repositories have the highest number of outdated dependencies. This helps you identify which repositories are "at risk" and need to be either updated or decommissioned entirely.
Not read yet
Comparison: Tools for Monitoring GitHub
When you are ready to move beyond custom scripts, there are several ways to aggregate this data.
| Approach | Pros | Cons |
|---|---|---|
| Custom API Scripts | Total control, free, highly customizable | Requires maintenance, complex to scale |
| GitHub Insights | Built-in, easy to set up | Limited customization, basic views |
| Third-Party SaaS | Advanced analytics, pre-built dashboards | Expensive, requires data sharing |
| SIEM Integration | Excellent for security, real-time | High learning curve, storage costs |
Key Takeaways
- Define Your Purpose: Before collecting data, define what success looks like. Are you trying to improve developer velocity, increase security coverage, or optimize cloud costs? Your goals should dictate your metrics.
- Prioritize Quality Over Quantity: Avoid the temptation to track everything. Focus on a few "North Star" metrics that represent the health of your engineering culture, such as deployment frequency and incident resolution time.
- Respect Developer Privacy: Always treat activity metrics as organizational data, not individual performance data. Using these metrics to judge individuals will destroy morale and lead to developers "gaming" the system.
- Leverage GraphQL: For enterprise-scale data collection, the GitHub GraphQL API is your most powerful tool. It is more efficient, scalable, and easier to structure than REST-based alternatives.
- Automate Cleanup: A healthy enterprise environment requires maintenance. Use automation to archive inactive repositories and prune stale branches to keep your data accurate and your platform clean.
- Use Data for Enablement: When you find a team that is struggling, use the metrics to initiate a conversation about how you can help them. Offer training, better templates, or improved infrastructure rather than just pointing out their low activity.
- Iterate and Evolve: Metrics are not static. As your organization grows and your development practices change, your metrics should evolve with you. Review your dashboard every quarter to ensure it is still providing value.
By following these practices, you transform GitHub from a mere repository host into a platform that actively contributes to your organization's goals. Monitoring adoption and activity is not about control; it is about visibility, and visibility is the first step toward continuous improvement. Keep the focus on enabling your developers, and the data will naturally show a healthier, more productive organization.
Not read yet
Common Questions (FAQ)
How often should I review my metrics?
A monthly review is usually sufficient for high-level trends. However, if you are rolling out a new tool or policy, you might want to review the data weekly to identify early adoption issues.
What if my team is not using GitHub for project management?
That is perfectly fine. Focus your metrics on the areas they are using. If they use Jira for project management, don't force them to use GitHub Projects just for the sake of metrics. Focus on the code-related metrics like pull request velocity and commit frequency.
How do I handle "noisy" data from bots?
Most API endpoints allow you to filter by user_type. Ensure your scripts filter out Bot and App users to get a true representation of human engineering activity.
Is there a "perfect" number for pull request velocity?
No. Every team works at a different pace based on the complexity of their domain. A team working on a core banking system will naturally have a slower velocity than a team working on a marketing website. Compare teams against their own historical performance, not against each other.
How do I justify the cost of GitHub Enterprise?
By showing the data. If you can demonstrate that your organization is using advanced security features (like secret scanning) and that you have a high rate of successful automated deployments, you can easily justify the value of the platform to stakeholders. The data provides the business case for your software investments.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
- Managed Users vs Personal Accounts
- Managed Users vs Personal Accounts Quiz5q
- Configuring SAML Single Sign-On
- Configuring SAML Single Sign-On Quiz5q
- Enforcing Two-Factor Authentication
- Enforcing Two-Factor Authentication Quiz5q
- SCIM Provisioning Implementation
- SCIM Provisioning Implementation Quiz5q
- Team Synchronization with IdP
- Team Synchronization with IdP Quiz5q
- Choosing Identity Providers
- Choosing Identity Providers Quiz5q
- Authentication and Authorization Model
- Authentication and Authorization Model Quiz5q
- Organization Roles Overview
- Organization Roles Overview Quiz5q
- Repository Roles Configuration
- Repository Roles Configuration Quiz5q
- Enterprise Teams Management
- Enterprise Teams Management Quiz5q
- Auditing Access and Permissions
- Auditing Access and Permissions Quiz5q
- Managing Policies and Rulesets
- Managing Policies and Rulesets Quiz5q
- Admin vs GitHub Support Responsibilities
- Admin vs GitHub Support Responsibilities Quiz5q
- Generating Support Bundles
- Generating Support Bundles Quiz5q
- Creating Diagnostics Reports
- Creating Diagnostics Reports Quiz5q
- Developer Process Standards
- Developer Process Standards Quiz5q
- Workflow and Branching Standards
- Workflow and Branching Standards Quiz5q
- GHEC with Enterprise Managed Users
- GHEC with Enterprise Managed Users Quiz5q
- GHEC with Data Residency
- GHEC with Data Residency Quiz5q
- GHEC with Personal Accounts
- GHEC with Personal Accounts Quiz5q
- GitHub Enterprise Server Deployment
- GitHub Enterprise Server Deployment Quiz5q
- Licensing and Billing Models
- Licensing and Billing Models Quiz5q
- Monitoring License Usage
- Monitoring License Usage Quiz5q
- Organization Security Policies
- Organization Security Policies Quiz5q
- Enterprise Security Policies
- Enterprise Security Policies Quiz5q
- Enterprise Security Posture
- Enterprise Security Posture Quiz5q
- Data Protection Strategies
- Data Protection Strategies Quiz5q
- Audit Logging Implementation
- Audit Logging Implementation Quiz5q
- Security Reporting and Compliance
- Security Reporting and Compliance Quiz5q
- Vulnerability Alerts Configuration
- Vulnerability Alerts Configuration Quiz5q
- Secret Scanning Setup
- Secret Scanning Setup Quiz5q
- CodeQL Code Scanning
- CodeQL Code Scanning Quiz5q
- Dependabot Configuration
- Dependabot Configuration Quiz5q
- Security Advisories Management
- Security Advisories Management Quiz5q
- Security Response Planning
- Security Response Planning Quiz5q
- Runner Groups Configuration
- Runner Groups Configuration Quiz5q
- GitHub-Hosted vs Self-Hosted
- GitHub-Hosted vs Self-Hosted Quiz5q
- IP Allow Lists Configuration
- IP Allow Lists Configuration Quiz5q
- Azure Private Networking
- Azure Private Networking Quiz5q
- Runner Performance Monitoring
- Runner Performance Monitoring Quiz5q
- Troubleshooting Runner Issues
- Troubleshooting Runner Issues Quiz5q
- Enterprise Migration Strategies
- Enterprise Migration Strategies Quiz5q
- Backup and Disaster Recovery
- Backup and Disaster Recovery Quiz5q
- High Availability Configuration
- High Availability Configuration Quiz5q
- Upgrade Planning and Execution
- Upgrade Planning and Execution Quiz5q
- Performance Tuning
- Performance Tuning Quiz5q
- Compliance and Regulatory Requirements
- Compliance and Regulatory Requirements Quiz5q
- Common Administration Issues
- Common Administration Issues Quiz5q
- Debugging Authentication Problems
- Debugging Authentication Problems Quiz5q
- Network Connectivity Issues
- Network Connectivity Issues Quiz5q
- Working with GitHub Support
- Working with GitHub Support Quiz5q
- Log Analysis and Debugging
- Log Analysis and Debugging Quiz5q
- Enterprise Maintenance Windows
- Enterprise Maintenance Windows Quiz5q
No GH-100 practice exam yet
Your points already work on 76 Amazon, CompTIA and Microsoft exams.
See the exams