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
jobs: mark a few auto partial stats metrics as essential
In order to match which metrics we mark as "essential" for AUTO CREATE
STATS jobs, we now mark the following AUTO CREATE PARTIAL STATS job
metrics:
- `jobs.auto_create_partial_stats.currently_paused`
- `jobs.auto_create_partial_stats.currently_running`
- `jobs.auto_create_partial_stats.resume_failed`.
Release note: None
description: Number of auto_create_partial_stats jobs currently considered Paused
337
+
y_axis_label: jobs
338
+
type: GAUGE
339
+
unit: COUNT
340
+
aggregation: AVG
341
+
derivative: NONE
342
+
how_to_use: This metric is a high-level indicator that automatically generated partial statistics jobs are paused which can lead to the query optimizer running with stale statistics. Stale statistics can cause suboptimal query plans to be selected leading to poor query performance.
description: Number of auto_create_partial_stats jobs currently running in Resume or OnFailOrCancel state
348
+
y_axis_label: jobs
349
+
type: GAUGE
350
+
unit: COUNT
351
+
aggregation: AVG
352
+
derivative: NONE
353
+
how_to_use: This metric tracks the number of active automatically generated partial statistics jobs that could also be consuming resources. Ensure that foreground SQL traffic is not impacted by correlating this metric with SQL latency and query volume metrics.
description: Number of auto_create_partial_stats jobs which failed with a non-retriable error
359
+
y_axis_label: jobs
360
+
type: COUNTER
361
+
unit: COUNT
362
+
aggregation: AVG
363
+
derivative: NON_NEGATIVE_DERIVATIVE
364
+
how_to_use: This metric is a high-level indicator that automatically generated partial table statistics is failing. Failed statistic creation can lead to the query optimizer running with stale statistics. Stale statistics can cause suboptimal query plans to be selected leading to poor query performance.
how_to_use: This metric tracks the number of active create statistics jobs that may be consuming resources. Ensure that foreground SQL traffic is not impacted by correlating this metric with SQL latency and query volume metrics.
430
+
how_to_use: This metric tracks the number of active create statistics jobs that could also be consuming resources. Ensure that foreground SQL traffic is not impacted by correlating this metric with SQL latency and query volume metrics.
m.HowToUse=`This metric tracks the number of active automatically generated statistics jobs that could also be consuming resources. Ensure that foreground SQL traffic is not impacted by correlating this metric with SQL latency and query volume metrics.`
104
-
casejobspb.TypeCreateStats:
105
-
m.Essential=true
106
-
m.Category=metric.Metadata_SQL
107
-
m.HowToUse=`This metric tracks the number of active create statistics jobs that may be consuming resources. Ensure that foreground SQL traffic is not impacted by correlating this metric with SQL latency and query volume metrics.`
103
+
vardetailstring
104
+
ifjt==jobspb.TypeCreateStats {
105
+
detail="create"
106
+
} elseifjt==jobspb.TypeAutoCreateStats {
107
+
detail="automatically generated"
108
+
} else {
109
+
detail="automatically generated partial"
110
+
}
111
+
m.HowToUse=fmt.Sprintf(`This metric tracks the number of active %s statistics jobs that could also be consuming resources. Ensure that foreground SQL traffic is not impacted by correlating this metric with SQL latency and query volume metrics.`, detail)
m.HowToUse=`This metric is a high-level indicator that automatically generated statistics jobs are paused which can lead to the query optimizer running with stale statistics. Stale statistics can cause suboptimal query plans to be selected leading to poor query performance.`
161
+
varpartialDetailstring
162
+
ifjt==jobspb.TypeAutoCreatePartialStats {
163
+
partialDetail="partial "
164
+
}
165
+
m.HowToUse=fmt.Sprintf(`This metric is a high-level indicator that automatically generated %sstatistics jobs are paused which can lead to the query optimizer running with stale statistics. Stale statistics can cause suboptimal query plans to be selected leading to poor query performance.`, partialDetail)
m.HowToUse=`This metric is a high-level indicator that automatically generated table statistics is failing. Failed statistic creation can lead to the query optimizer running with stale statistics. Stale statistics can cause suboptimal query plans to be selected leading to poor query performance.`
244
+
varpartialDetailstring
245
+
ifjt==jobspb.TypeAutoCreatePartialStats {
246
+
partialDetail="partial "
247
+
}
248
+
m.HowToUse=fmt.Sprintf(`This metric is a high-level indicator that automatically generated %stable statistics is failing. Failed statistic creation can lead to the query optimizer running with stale statistics. Stale statistics can cause suboptimal query plans to be selected leading to poor query performance.`, partialDetail)
0 commit comments