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
summary: "Gather machine stats from remote environments"
6
6
sidebar: main_sidebar
@@ -116,6 +116,27 @@ As above, you can provide the username with the `-UserName` parameter.
116
116
117
117
This approach is useful when you want to take a snapshot of your infrastructure and upload it directly to the Tidal Platform in one command. Since we're uploading the result immediately, this approach will only work on a server which has `tidal tools` installed and which is connected to the internet.
118
118
119
+
#### Gather Process Stats
120
+
121
+
You also can optionally capture metrics about processes running on the server using the command-line flag `-ProcessStats`. It will capture the following metadata for each process.
122
+
123
+
- User
124
+
- Process Name
125
+
- Process Path
126
+
- Memory Used (MB)
127
+
- Max Memory Used (MB)
128
+
- Total Alive Time
129
+
- PID
130
+
- PPID
131
+
132
+
To enable capturing process metrics and pipe the output to Tidal Accelerator add the `-ProcessStats` flag to `runner.ps1`:
133
+
134
+
./runner.ps1 -ProcessStats | tidal sync servers
135
+
136
+
With this, you can also access this information on the Tidal Accelerator platform from `https://my_workspace.tidal.cloud/servers/your_server_id/process-stats`
137
+
138
+
{% include image.html file="process_stats.png" %}
139
+
119
140
#### Run Machine Stats in a Scheduled Task
120
141
121
142
To run Machine Stats in a Windows scheduled task, we must first create the script which the scheduled task will execute. If you want to save the results as json files to the current directory, with a timestamp in the filename, you can use something like this (remember to replace `<path>` with the correct path):
@@ -262,6 +283,7 @@ dependencies setup:
262
283
### Run Machine Stats
263
284
264
285
Now that you have created a hosts file, you have three options for how to run Machine Stats depending on your needs. You can run the program manually and save the output to a result file. You could use Machine Stats to capture data points on your inventory and send its output to your Tidal workspace. Finally, You can use Machine Stats to capture statistics on a host for a period of time. The following 3 sections will guide you through these scenarios.
286
+
265
287
#### Execute Machine Stats Manually
266
288
267
289
Execute `machine-stats` in your current working directory, and save the result to a `json` file of your choice.
@@ -282,6 +304,27 @@ Execute `machine-stats` and pipe its output to Tidal Tools:
282
304
283
305
This approach is useful when you want to take a snapshot of your infrastructure and upload it directly to the Tidal Platform in one command. Since we're uploading the result immediately, this approach will only work on a server which has `tidal tools` installed and which is connected to the internet.
284
306
307
+
#### Gather Process Stats
308
+
309
+
You also can optionally capture metrics about processes running on the server using the command-line flag `--process-stats`. It will capture the following metadata for each process.
310
+
311
+
- User
312
+
- Process Name
313
+
- Process Path
314
+
- Memory Used (MB)
315
+
- Max Memory Used (MB)
316
+
- Total Alive Time
317
+
- PID
318
+
- PPID
319
+
320
+
To enable capturing process metrics and pipe the output to Tidal Accelerator add the `--process-stats flag` to `machine-stats`:
With this, you can also access this information on the Tidal Accelerator platform from `https://my_workspace.tidal.cloud/servers/your_server_id/process-stats`
325
+
326
+
{% include image.html file="process_stats.png" %}
327
+
285
328
#### Run Machine Stats on a Cron Job
286
329
287
330
By leveraging cron, you can run Machines Stats on a schedule to gather data over a period of time.
0 commit comments