Skip to content

Commit d2feeb1

Browse files
committed
Added section on reporting to tutorial
1 parent c246a01 commit d2feeb1

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

StorageGRID-Webscale-Tutorial.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,20 @@ $BucketAccounting = foreach ($Account in (Get-SGWAccounts | Where-Object { $_.ca
9797
$BucketAccounting | Export-Csv -Path $HOME\Downloads\TenantAccounting.csv -NoTypeInformation
9898
```
9999

100-
## Report creation
100+
## Report creation
101+
102+
StorageGRID allows to create reports for different metrics on grid, site and node level.
103+
104+
You can check the available metrics by using Command Completion. Just type the following command and hit the Tabulator key (->|)
105+
```powershell
106+
Get-SGWReport -Attribute
107+
```
108+
109+
The reports have a start and an end date. By default the attributes will be listed for the last hour. For attributes within the last 7 days StorageGRID will report the measure value in a specific interval. Attributes older than 7 days will be aggregated and StorageGRID will return average, minium and maximum value for each sample time. You can specify a time range using PowerShell DateTime objects.
110+
111+
Here are some examples:
112+
```powershell
113+
Get-SGWReport -Attribute 'S3 Ingest - Rate (XSIR) [MB/s]'
114+
Get-SGWReport -Attribute 'S3 Retrieval - Rate (XSRR) [MB/s]' -StartTime (Get-Date).AddDays(-1)
115+
Get-SGWReport -Attribute 'Used Storage Capacity (XUSC) [Bytes]' -StartTime (Get-Date).AddDays(-10) -EndTime (Get-Date).AddDays(-1)
116+
```

0 commit comments

Comments
 (0)