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: README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@
26
26
- Processes list (sorted by CPU usage)
27
27
- Disk Storage (Used, Total, Available)
28
28
- Party Mode (Randomly cycles through colors)
29
+
- Optional Prometheus Metrics server (default is disabled)
29
30
- Support for all Apple Silicon models.
30
31
31
32
## Install via Homebrew
@@ -91,6 +92,7 @@ sudo mactop --interval 1000 --color green
91
92
-`--interval` or `-i`: Set the powermetrics update interval in milliseconds. Default is 1000. (For low-end M chips, you may want to increase this value)
92
93
-`--color` or `-c`: Set the UI color. Default is white.
93
94
Options are 'green', 'red', 'blue', 'cyan', 'magenta', 'yellow', and 'white'. (-c green)
95
+
-`--prometheus` or `-p`: Set and enable the local Prometheus metrics server on the given port. Default is disabled. (e.g. -p 2112 to enable Prometheus metrics on port 2112)
94
96
-`--version` or `-v`: Print the version of mactop.
95
97
-`--help` or `-h`: Show a help message about these flags and how to run mactop.
stderrLogger.Printf("Failed to start Prometheus metrics server: %v\n", err)
134
+
}
135
+
}()
136
+
}
137
+
73
138
typeCPUUsagestruct {
74
139
Userfloat64
75
140
Systemfloat64
@@ -364,7 +429,31 @@ func setupUI() {
364
429
pCoreCount,
365
430
gpuCoreCount,
366
431
)
367
-
helpText.Text="mactop is open source monitoring tool for Apple Silicon authored by Carsen Klock in Go Lang!\n\nRepo: github.com/context-labs/mactop\n\nControls:\n- r: Refresh the UI data manually\n- c: Cycle through UI color themes\n- p: Toggle party mode (color cycling)\n- l: Toggle the main display's layout\n- h or ?: Toggle this help menu\n- q or <C-c>: Quit the application\n\nStart Flags:\n--help, -h: Show this help menu\n--version, -v: Show the version of mactop\n--interval, -i: Set the powermetrics update interval in milliseconds. Default is 1000.\n--color, -c: Set the UI color. Default is none. Options are 'green', 'red', 'blue', 'cyan', 'magenta', 'yellow', and 'white'.\n\nVersion: "+version
0 commit comments