tabby-server-stats 1.0.3 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Akkariin Meiko
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Akkariin Meiko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,27 +1,60 @@
1
- Tabby Server Stats Plugin
2
-
3
- A plugin for [Tabby Terminal](https://github.com/Eugeny/tabby) that displays real-time server statistics (CPU, RAM, Disk, Network) when connected via SSH.
4
-
5
- ## Features
6
- * Real-time Monitoring: Displays CPU usage, RAM usage, Disk usage, and Network upload/download speeds.
7
- * Draggable Panel: You can drag the stats panel anywhere on the screen.
8
- * Permanent Bottom Bar: Stats are displayed in a fixed bottom bar that's always visible.
9
- * Customizable:
10
- * Change chart colors and opacity.
11
- * Switch between Vertical and Horizontal layouts.
12
- * Adjust chart size.
13
- * Position is saved automatically.
14
- * Zero Dependency on Server: Uses standard Linux commands (`/proc/stat`, `free`, `df`, `/proc/net/dev`) via SSH channel. No agent installation required on the server.
15
-
16
- ## Installation
17
- 1. Open Tabby Settings.
18
- 2. Go to Plugins.
19
- 3. Search for `tabby-server-stats`.
20
- 4. Click Install.
21
-
22
- ## Usage
23
- The stats will automatically appear when you connect to a Linux server via SSH.
24
- You can toggle the visibility using the "Activity" icon in the toolbar.
25
-
26
- ## License
27
- MIT
1
+ # **Tabby Server Stats Plugin**
2
+
3
+ A plugin for [Tabby Terminal](https://github.com/Eugeny/tabby) that displays real-time server statistics (CPU, RAM, Disk, Network) and **custom metrics** when connected via SSH.
4
+
5
+ ![Preview image](https://github.com/user-attachments/assets/5571d1ea-5517-423c-b267-308d06794cde)
6
+
7
+ ## **Features**
8
+
9
+ * **Real-time Monitoring**: Displays CPU usage, RAM usage, Disk usage, and Network upload/download speeds out of the box.
10
+ * **Custom Metrics Engine**: Define your own metrics using shell commands (e.g., GPU usage, Temperature, Docker container count).
11
+ * **Progress Bars**: Visual bars for percentage-based data.
12
+ * **Text Values**: Display raw data with units (e.g., "45°C", "3 Users").
13
+ * **Preset Library**: One-click import for common metrics (GPU, Uptime, Temperature, etc.) from the community repository.
14
+ * **Flexible UI**:
15
+ * **Bottom Bar Mode**: An unobtrusive bar at the bottom of the terminal (docked inside the pane, won't overlap sidebars).
16
+ * **Floating Panel Mode**: A draggable widget that floats over the content.
17
+ * **Highly Customizable**:
18
+ * **Drag & Drop Sorting**: Easily reorder metrics in the settings.
19
+ * **Visual Customization**: Change chart colors, opacity, and layout (Vertical/Horizontal).
20
+ * **Multi-language Support**: Interface available in English and Chinese.
21
+ * **Zero Dependency**: Uses standard Linux commands via the SSH channel. No agent installation required on the server.
22
+
23
+ ## **Installation**
24
+
25
+ 1. Open **Tabby Settings**.
26
+ 2. Go to **Plugins**.
27
+ 3. Search for tabby-server-stats.
28
+ 4. Click **Install**.
29
+
30
+ ## **Usage**
31
+
32
+ The stats will automatically appear when you connect to a Linux server via SSH.
33
+ You can toggle visibility using the "Activity" icon in the toolbar.
34
+
35
+ ### **How to use Custom Metrics**
36
+
37
+ Go to **Settings \-\> Server Stats** to manage your metrics.
38
+
39
+ #### **1\. Using the Preset Library (Recommended)**
40
+
41
+ 1. Click the **"Fetch from GitHub"** button in the settings panel.
42
+ 2. Browse the list of community presets (e.g., NVIDIA GPU, CPU Temp, Uptime).
43
+ 3. Click **Add** next to the metric you want.
44
+ 4. It will immediately appear in your status bar.
45
+
46
+ #### **2\. Adding Manually**
47
+
48
+ You can define any metric by providing a shell command.
49
+
50
+ * **Label**: Name of the metric (e.g., "GPU").
51
+ * **Command**: A shell command that outputs a **single number or string**.
52
+ * *Example (NVidia GPU)*: `nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits`
53
+ * *Example (Active Users)*: `who | grep -c pts`
54
+ * **Type**:
55
+ * **Progress Bar**: Requires the command to return a number between 0-100.
56
+ * **Text Value**: Displays whatever the command outputs.
57
+
58
+ ## **License**
59
+
60
+ MIT