Skip to content

Commit 1123078

Browse files
authored
Dashboard 2026 q1 (#49)
* added dashboard 2026-01 * added dashboard for 2026-02 * added initial version of extrac_stats.py script * added dashboard for 2026-03 * generate stats in stats folder * added quartely reports * added 2026-q1 dashboard
1 parent 1a5789d commit 1123078

27 files changed

Lines changed: 5593 additions & 4 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,6 @@ cython_debug/
163163

164164
# macos
165165
.DS_Store
166+
167+
# vscode
168+
.vscode/

README.md

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,62 @@ Contributions are welcome. Feel free to open a pull request with changes.
88

99
## Running it Locally
1010

11-
It can be helpful to preview changes on your computer before opening a pull request. *ROOCS website* uses the [MkDocs static site generator](https://www.mkdocs.org/). After forking or cloning the repository, perform the following steps to generate the site and preview it:
11+
Preview changes locally before opening a pull request. This site uses [MkDocs](https://www.mkdocs.org/).
1212

1313
```
14-
# build conda env with mkdcos
14+
# create conda environment
1515
conda env create
1616
conda activate roocs
1717
1818
# build docs
1919
mkdocs build
2020
21-
# view docs locally
21+
# serve docs locally
2222
mkdocs serve
2323
```
2424

2525
Open browser: http://127.0.0.1:8000
2626

27+
## Extract Monthly Download Stats
28+
29+
Use `scripts/extract_stats.py` to aggregate monthly request/download metrics from dashboard HTML files.
30+
31+
Use the same conda environment setup shown above (`conda env create`, `conda activate roocs`), then run:
32+
33+
```bash
34+
python scripts/extract_stats.py --start 2025-04 --end 2026-02 --site dkrz --quiet
35+
```
36+
37+
This writes:
38+
39+
`docs/downloads/stats/<site>-monthly-<start>_to_<end>_metrics.csv`
40+
`docs/downloads/stats/<site>-quarterly-<start>_to_<end>_metrics.csv`
41+
`docs/downloads/stats/<site>-monthly-<start>_to_<end>_visits.csv`
42+
43+
Notes:
44+
45+
- `downloads_size` is in MB.
46+
47+
48+
## Generate Yearly Dashboard Report
49+
50+
Generate `docs/dashboard/dashboard-<year>.md` from the current quarterly stats files:
51+
52+
```bash
53+
python scripts/generate_dashboard_report.py --year 2026 --quiet
54+
```
55+
56+
Extended usage:
57+
58+
```bash
59+
python scripts/generate_dashboard_report.py 2026
60+
python scripts/generate_dashboard_report.py --year 2026 --stats-dir docs/downloads/stats --output docs/dashboard/dashboard-2026.md
61+
```
62+
63+
Input parameter:
64+
65+
- `year` (for example: `2026`)
66+
2767

2868
## Deployment
2969

docs/dashboard/dashboard-2026.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Usage Statistics for 2026
2+
3+
## Quarterly Reports
4+
### Q1: January - March 2026
5+
6+
- **Dashboards**
7+
- 📊 [IPSL](/downloads/dashboard/2026/dashboard-2026-q1-ipsl.html)
8+
- 📊 [DKRZ](/downloads/dashboard/2026/dashboard-2026-q1-dkrz.html)
9+
10+
- **Number of Requests**
11+
- **Total**: `409,001`
12+
- **DKRZ**: `260,752`
13+
- **IPSL**: `148,249`
14+
15+
- **Data Transfer (Subsetted Data)**
16+
- **Total**: `28.97 TB`
17+
- **DKRZ**: `18.71 TB`
18+
- **IPSL**: `10.27 TB`
19+
20+
- **Max Concurrency**: #`19`
21+
22+
23+
---
24+
25+
## Monthly Reports
26+
27+
| Month | ALL | IPSL | DKRZ |
28+
|------------------|----------------|----------------|----------------|
29+
| **March 2026** | [View](/downloads/dashboard/2026/dashboard-2026-03-all.html) | [View](/downloads/dashboard/2026/dashboard-2026-03-ipsl.html) | [View](/downloads/dashboard/2026/dashboard-2026-03-dkrz.html) |
30+
| **February 2026** | [View](/downloads/dashboard/2026/dashboard-2026-02-all.html) | [View](/downloads/dashboard/2026/dashboard-2026-02-ipsl.html) | [View](/downloads/dashboard/2026/dashboard-2026-02-dkrz.html) |
31+
| **January 2026** | [View](/downloads/dashboard/2026/dashboard-2026-01-all.html) | [View](/downloads/dashboard/2026/dashboard-2026-01-ipsl.html) | [View](/downloads/dashboard/2026/dashboard-2026-01-dkrz.html) |

docs/downloads/dashboard/2026/dashboard-2026-01-all.html

Lines changed: 407 additions & 0 deletions
Large diffs are not rendered by default.

docs/downloads/dashboard/2026/dashboard-2026-01-dkrz.html

Lines changed: 407 additions & 0 deletions
Large diffs are not rendered by default.

docs/downloads/dashboard/2026/dashboard-2026-01-ipsl.html

Lines changed: 407 additions & 0 deletions
Large diffs are not rendered by default.

docs/downloads/dashboard/2026/dashboard-2026-02-all.html

Lines changed: 407 additions & 0 deletions
Large diffs are not rendered by default.

docs/downloads/dashboard/2026/dashboard-2026-02-dkrz.html

Lines changed: 407 additions & 0 deletions
Large diffs are not rendered by default.

docs/downloads/dashboard/2026/dashboard-2026-02-ipsl.html

Lines changed: 407 additions & 0 deletions
Large diffs are not rendered by default.

docs/downloads/dashboard/2026/dashboard-2026-03-all.html

Lines changed: 407 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)