Tracking comparative Enterprise Linux usage primarily using EPEL usage metrics https://rocky-stats.tiuxo.com
  • Python 55.2%
  • Jupyter Notebook 26%
  • HTML 18.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Brian Clemens 0de9319794
All checks were successful
Update statistics / notebooks (push) Successful in 36m20s
Show new charts on the site and drop the old DockerHub path
Adds the growth/velocity and container registry charts to the page. The
registry section carries the measurement caveat inline, since the charts
invite a comparison the numbers do not support.

Removes load_dockerhub_data() and DH_DISTROS, disabled since 2024 and now
superseded by registry_utils, along with the commented-out call in the
notebook and the stale dh_by_distro_line output.

Assisted-by: claude-opus-5
2026-11-18 21:45:01 +09:00
.forgejo/workflows Track container registry pulls by distribution 2026-11-18 19:25:27 +09:00
public Show new charts on the site and drop the old DockerHub path 2026-11-18 21:45:01 +09:00
scripts Track container registry pulls by distribution 2026-11-18 19:25:27 +09:00
.gitignore gitignore 2025-08-14 20:03:26 +09:00
config.py Show new charts on the site and drop the old DockerHub path 2026-11-18 21:45:01 +09:00
data_utils.py Show new charts on the site and drop the old DockerHub path 2026-11-18 21:45:01 +09:00
epel.ipynb Show new charts on the site and drop the old DockerHub path 2026-11-18 21:45:01 +09:00
LICENSE Initial commit 2022-05-15 12:49:32 +09:00
plot_utils.py Track container registry pulls by distribution 2026-11-18 19:25:27 +09:00
README.md Show new charts on the site and drop the old DockerHub path 2026-11-18 21:45:01 +09:00
registry_utils.py Track container registry pulls by distribution 2026-11-18 19:25:27 +09:00
requirements.txt Track container registry pulls by distribution 2026-11-18 19:25:27 +09:00

Rocky Stats - Enterprise Linux Distribution Analysis

A data visualization project analyzing Enterprise Linux distribution usage patterns using EPEL telemetry and DockerHub pull statistics.

Overview

This project generates comprehensive charts comparing Rocky Linux, RHEL, CentOS variants, AlmaLinux, and Oracle Linux usage trends over time. The analysis helps understand the Enterprise Linux ecosystem evolution and adoption patterns.

Features

  • Automated Data Collection: Downloads latest EPEL and DockerHub data with smart caching
  • Distribution Analysis: Tracks market share and usage trends across major EL distributions
  • Architecture Breakdown: Analyzes usage across x86_64, aarch64, ppc64le, and s390x architectures
  • System Age Analysis: Differentiates between ephemeral and long-term deployments
  • Version Tracking: Monitors adoption of different EL major/minor versions
  • Export Formats: Generates both PNG and SVG outputs for presentations and web use

Project Structure

├── config.py              # Configuration settings and constants
├── data_utils.py           # Data loading and preprocessing functions  
├── registry_utils.py       # Container registry pull collection
├── plot_utils.py           # Plotting and visualization utilities
├── scripts/                # One-off maintenance scripts
├── epel_refactored.ipynb   # Main analysis notebook (refactored)
├── epel.ipynb              # Original notebook (legacy)
├── requirements.txt        # Python dependencies
├── data/                   # Downloaded data files (cached)
├── out/                    # Generated chart outputs
└── LICENSE                 # MIT License

Setup

  1. Install Dependencies:

    pip install -r requirements.txt
    
  2. Provide Input Data: The notebook reads data/epel.csv directly and does not download it. Download the EPEL countme totals from the source URL (see config.EPEL_DATA_URL) into the data/ directory before running:

    mkdir -p data
    curl -o data/epel.csv \
      https://data-analysis.fedoraproject.org/csv-reports/countme/totals.csv
    
  3. Run Analysis:

    jupyter notebook epel.ipynb
    
  4. Output Location: Generated charts are saved to the out/ directory in both PNG and SVG formats.

Data Sources

In CI the EPEL data is fetched by the workflow and cached in object storage, re-downloading from the source only when it changes (via HTTP ETag).

Container registry pulls

Pull counts measure image downloads, not running systems. Automated builds and CI pipelines pull repeatedly, and distributions publish different image sets across registries, so the numbers are best read as trends over time rather than direct comparisons between distributions.

Only the per-distribution total is comparable. AlmaLinux and Red Hat publish each image variant as its own repository, while Rocky publishes variants as tags on a single repository, and no registry exposes per-tag pull counts. The images counted for each distribution are listed in config.REGISTRY_IMAGES; library/centos is excluded, as it has been frozen since 2022 while still accumulating pulls at a volume that swamps every live distribution.

The two registries report different things:

Docker Hub Quay
Metric cumulative lifetime counter pulls per day
History none; starts when collection starts ~90 day rolling window
Missed runs permanent gap repaired on next run

Daily Docker Hub volume is therefore the difference between consecutive samples. Differences spanning a gap are discarded rather than spread across the missing days, so a break in collection appears as a gap in the chart.

Docker Hub history before collection began comes from a community-maintained spreadsheet that sampled the counters hourly from 2023-10-07 until it stopped on 2026-08-19. It is imported once by scripts/backfill_registry.py and reduced to one reading per day. It tracked no EL10 images, so those series begin with this project's own collection, and the window between its final reading and the first collected sample is left empty.

That import has already been run and is not part of the scheduled job; the result lives in the cached registry.csv. The script is kept because the spreadsheet is the only source of pre-2026-08 Docker Hub history and Docker Hub itself cannot serve the past, so it is the sole means of rebuilding that history if the cached CSV is ever lost.

How systems are counted

The countme data records one hit per repository per host per week, not one per host. A host with several EPEL repos enabled therefore appears several times. To approximate a per-host count, only the primary repos listed in config.EPEL_REPOS are counted, and a repo's major version must match the host's. Supplemental repos enabled alongside a primary one (EPEL Next, modular, testing) are excluded.

This matters most for CentOS Stream: EPEL Next exists specifically for Stream, around three quarters of Stream hosts enable it, and Stream accounts for ~87% of all EPEL Next traffic. Counting it would roughly double Stream's totals.

Charts therefore show hosts counted once via their primary repo. True unique instance counts are not recoverable from this data.

Only released (GA) versions are counted; see the notes on the version lists in config.py.

Generated Charts

Distribution Analysis

  • Enterprise Linux instances by distribution (share and total)
  • Long-term trends with polynomial trendlines
  • Ephemeral vs. persistent deployments

Version-Specific Analysis

  • EL8, EL9, and EL10 adoption patterns
  • Rocky Linux version distribution over time

Architecture Analysis

  • AltArch (non-x86_64) usage patterns
  • Rocky Linux deployment by architecture

Container Registry Analysis

  • Daily pull volume by distribution on Docker Hub and Quay

System Age Analysis

  • Distribution breakdown by system age categories
  • Rocky Linux deployment maturity patterns

Configuration

Key settings in config.py:

  • EMPHASIZE: Which distribution to highlight in charts (default: 'Rocky Linux')
  • COLORS: Brand colors for each distribution
  • STARTDATE: Analysis time window (default: 1 year)

Development

Refactoring Benefits

The refactored version provides:

  • Modular Code: Separated concerns into config, data, and plotting modules
  • Reusability: Functions can be imported and reused across notebooks
  • Maintainability: Easier to modify settings and add new visualizations
  • Consistency: Standardized plotting styles and data processing

Adding New Charts

  1. Use existing data processing functions from data_utils.py
  2. Apply consistent styling with plot_utils.py helper functions
  3. Follow naming conventions for output files

License

MIT License - see LICENSE file for details.

Contributing

  1. Follow the modular structure when adding features
  2. Update configuration in config.py for new distributions or settings
  3. Add new utility functions to appropriate modules
  4. Test with the refactored notebook before committing

Data Notes

  • EPEL data represents systems checking for package updates
  • Some dates are excluded due to known data collection issues
  • DockerHub analysis is currently disabled pending data source updates
  • System age categories: <1 week (ephemeral), 1 week-1 month, 1-6 months, >6 months (long-term)