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
defaultErrorRateQuery=`sum(rate(cortex_dynamo_failures_total{error="ProvisionedThroughputExceededException",operation=~".*Write.*"}[1m])) by (table) > 0`
33
+
// fetch write capacity usage per DynamoDB table
34
+
// use the rate over 15 minutes so we take a broad average
35
+
defaultUsageQuery=`sum(rate(cortex_dynamo_consumed_capacity_total{operation="DynamoDB.BatchWriteItem"}[15m])) by (table) > 0`
27
36
)
28
37
29
38
// MetricsAutoScalingConfig holds parameters to configure how it works
30
39
typeMetricsAutoScalingConfigstruct {
31
-
URLstring// URL to contact Prometheus store on
32
-
TargetQueueLenint64// Queue length above which we will scale up capacity
33
-
ScaleUpFactorfloat64// Scale up capacity by this multiple
40
+
URLstring// URL to contact Prometheus store on
41
+
TargetQueueLenint64// Queue length above which we will scale up capacity
42
+
ScaleUpFactorfloat64// Scale up capacity by this multiple
43
+
QueueLengthQuerystring// Promql query to fetch ingester queue length
44
+
ErrorRateQuerystring// Promql query to fetch error rates per table
45
+
UsageQuerystring// Promql query to fetch write capacity usage per table
34
46
}
35
47
36
48
// RegisterFlags adds the flags required to config this to the given FlagSet
0 commit comments