You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,12 @@
4
4
5
5
Octometrics is a Go CLI that profiles GitHub Actions workflows. Read `design.md` for architecture diagrams and key design decisions. The main commands are:
6
6
7
-
| Command | Purpose |
8
-
|---------|---------|
9
-
|`monitor`| Collects system metrics (CPU, memory, disk, I/O) during a GHA job, writes JSONL |
10
-
|`gather`| Fetches workflow/job/step data from the GitHub REST & GraphQL APIs, stores as JSON |
11
-
|`observe`| Renders gathered data as interactive HTML (Mermaid Gantt charts, Plotly metric charts) |
12
-
|`report`| Analyzes monitor JSONL and posts Mermaid-based summaries to GHA step summaries and PR comments |
Copy file name to clipboardExpand all lines: README.md
+17-8Lines changed: 17 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,24 +2,33 @@
2
2
3
3
A simple CLI tool to visualize and profile your GitHub Actions workflows. See all the processes that run as part of a PR, workflow, or job in a simple, interactive chart. It can also run [directly in your GitHub Actions flow](https://github.com/kalverra/octometrics-action), useful for debugging changes and performance issues.
4
4
5
-

5
+

6
6
7
7
## Run
8
8
9
+
Before running, make sure to provide GitHub API token, either through the `GITHUB_TOKEN` env var, or the `-t` flag.
10
+
9
11
```sh
12
+
# Install
13
+
go install github.com/kalverra/octometrics@latest
14
+
10
15
# Show help menu
11
-
go run . -h
12
-
```
16
+
octometrics -h
13
17
14
-
## Monitor
18
+
# To see all workflows run on all commits a part of this PR (including merge queue runs): https://github.com/kalverra/octometrics/pull/33
This will launch a background process to monitor stats like CPU and memory usage. This can be run on GHA runners so that when you later `gather` and `observe` the data, you will also have detailed profiling info.
21
+
# To see all workflows run on a specific commit: https://github.com/kalverra/octometrics/pull/33/changes/94ad3f7e2f45852a99791326847ea12c94b964dc
Run `monitor` directly in your GitHub action and it will post performance data as a comment and summary to the action run. [See the octometrics-action](https://github.com/kalverra/octometrics-action).
0 commit comments