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: samples/manage/azure-sql-db-elastic-pools/PoolTelemetryJobRunner.ps1
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@
17
17
# should be installed in the same directory.
18
18
#
19
19
# This script should be customized as required (see <<<) to select one or more source
20
-
# servers, and will then spawn a telemetry gathering job for each server. Each job
21
-
#will use Load-PoolTelemetryForServer in PoolTelemetry.ps1 to load telemetry for all
20
+
# servers, and will then spawn a telemetry gathering job for each server based on
21
+
# Load-PoolTelemetryForServer in PoolTelemetry.ps1, which loads telemetry for all
22
22
# pools and elastic databases on the server. Each spawned job will run for an
23
23
# extended period in the background, waking up periodically to load more telemetry.
24
24
# The interval between telemetry gathering and the total duration can be controlled
@@ -58,7 +58,10 @@ $staticServerList = $false # set to $true if server list will not change during
58
58
$intervalMinutes=15# interval between telemetry collections used by spawned server job (15-30 mins suggested)
59
59
$durationMinutes=60# total duration for collection of telemetry and checking servers; 0 for one time execution, or a multiple of the interval.
60
60
61
-
# Set to $true to gather 15 sec telemetry for elastic databases. Caution: large volumes of data may be returned. <<< ***
61
+
## Set to $true to include all available pool telemetry (up to 14 days). Be careful if rerunning on the same server as this may load duplicate data <<< ***
62
+
$loadAllAvailablePoolTelemetry=$false
63
+
64
+
## Set to $true to gather 15 sec telemetry for elastic databases. Caution: large volumes of data may be returned. <<< ***
62
65
[bool]$includeDatabases=$false# or $False
63
66
64
67
$now= [DateTime]::UtcNow
@@ -91,7 +94,7 @@ while ($startTime -le $finishTime)
0 commit comments