@hiiretail/gcp-infra-cli 0.100.0 → 0.101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -303,14 +303,16 @@ pub_sub:
|
|
|
303
303
|
metric.type="pubsub.googleapis.com/subscription/dead_letter_message_count"
|
|
304
304
|
resource.labels.project_id="<%-projectId%>"
|
|
305
305
|
threshold_value: 0
|
|
306
|
-
duration:
|
|
306
|
+
duration: 300s
|
|
307
307
|
aggregations:
|
|
308
308
|
- alignment_period: 60s
|
|
309
|
-
per_series_aligner:
|
|
309
|
+
per_series_aligner: ALIGN_RATE
|
|
310
|
+
cross_series_reducer: REDUCE_SUM
|
|
310
311
|
group_by_fields:
|
|
311
312
|
- resource.label.subscription_id
|
|
313
|
+
- metric.label.response_code
|
|
312
314
|
documentation:
|
|
313
|
-
subject: 'Subscription: `$${resource.label.subscription_id}`'
|
|
315
|
+
subject: 'Subscription: `$${resource.label.subscription_id}`, Response code: `$${metric.label.response_code}`'
|
|
314
316
|
latency:
|
|
315
317
|
display_name: "[P3] <%-clan%> - Pub/Sub | Response latency distribution"
|
|
316
318
|
conditions:
|
|
@@ -430,7 +432,7 @@ cloud_run:
|
|
|
430
432
|
error_count:
|
|
431
433
|
display_name: "[P3] <%-clan%> - Cloud Run | Error Count"
|
|
432
434
|
conditions:
|
|
433
|
-
- display_name:
|
|
435
|
+
- display_name: Error count above threshold for more than 5 minutes
|
|
434
436
|
condition_threshold:
|
|
435
437
|
filter: |
|
|
436
438
|
resource.type="cloud_run_revision"
|
|
@@ -438,9 +440,11 @@ cloud_run:
|
|
|
438
440
|
metric.label.response_code_class="5xx"
|
|
439
441
|
resource.labels.project_id="<%-projectId%>"
|
|
440
442
|
threshold_value: 50
|
|
443
|
+
duration: 300s
|
|
441
444
|
aggregations:
|
|
442
445
|
- alignment_period: 60s
|
|
443
|
-
per_series_aligner:
|
|
446
|
+
per_series_aligner: ALIGN_RATE
|
|
447
|
+
cross_series_reducer: REDUCE_SUM
|
|
444
448
|
group_by_fields:
|
|
445
449
|
- resource.label.service_name
|
|
446
450
|
documentation:
|
|
@@ -448,16 +452,18 @@ cloud_run:
|
|
|
448
452
|
request_latency:
|
|
449
453
|
display_name: "[P3] <%-clan%> - Cloud Run | Request Latency"
|
|
450
454
|
conditions:
|
|
451
|
-
- display_name:
|
|
455
|
+
- display_name: Request latency (p95) above threshold for more than 5 minutes
|
|
452
456
|
condition_threshold:
|
|
453
457
|
filter: |
|
|
454
458
|
resource.type="cloud_run_revision"
|
|
455
459
|
metric.type="run.googleapis.com/request_latencies"
|
|
456
460
|
resource.labels.project_id="<%-projectId%>"
|
|
457
|
-
threshold_value:
|
|
461
|
+
threshold_value: 500
|
|
462
|
+
duration: 300s
|
|
458
463
|
aggregations:
|
|
459
464
|
- alignment_period: 60s
|
|
460
|
-
per_series_aligner:
|
|
465
|
+
per_series_aligner: ALIGN_DELTA
|
|
466
|
+
cross_series_reducer: REDUCE_PERCENTILE_95
|
|
461
467
|
group_by_fields:
|
|
462
468
|
- resource.label.service_name
|
|
463
469
|
documentation:
|
|
@@ -465,7 +471,7 @@ cloud_run:
|
|
|
465
471
|
cpu_utilization:
|
|
466
472
|
display_name: "[P3] <%-clan%> - Cloud Run | CPU Utilization"
|
|
467
473
|
conditions:
|
|
468
|
-
- display_name:
|
|
474
|
+
- display_name: CPU utilization above threshold for more than 5 minutes
|
|
469
475
|
condition_threshold:
|
|
470
476
|
filter: |
|
|
471
477
|
resource.type="cloud_run_revision"
|
|
@@ -475,7 +481,8 @@ cloud_run:
|
|
|
475
481
|
duration: 300s
|
|
476
482
|
aggregations:
|
|
477
483
|
- alignment_period: 60s
|
|
478
|
-
per_series_aligner:
|
|
484
|
+
per_series_aligner: ALIGN_SUM
|
|
485
|
+
cross_series_reducer: REDUCE_PERCENTILE_99
|
|
479
486
|
group_by_fields:
|
|
480
487
|
- resource.label.service_name
|
|
481
488
|
documentation:
|
|
@@ -483,7 +490,7 @@ cloud_run:
|
|
|
483
490
|
memory_utilization:
|
|
484
491
|
display_name: "[P3] <%-clan%> - Cloud Run | Memory Utilization"
|
|
485
492
|
conditions:
|
|
486
|
-
- display_name:
|
|
493
|
+
- display_name: Memory utilization above threshold for more than 5 minutes
|
|
487
494
|
condition_threshold:
|
|
488
495
|
filter: |
|
|
489
496
|
resource.type="cloud_run_revision"
|
|
@@ -493,7 +500,8 @@ cloud_run:
|
|
|
493
500
|
duration: 300s
|
|
494
501
|
aggregations:
|
|
495
502
|
- alignment_period: 60s
|
|
496
|
-
per_series_aligner:
|
|
503
|
+
per_series_aligner: ALIGN_SUM
|
|
504
|
+
cross_series_reducer: REDUCE_PERCENTILE_99
|
|
497
505
|
group_by_fields:
|
|
498
506
|
- resource.label.service_name
|
|
499
507
|
documentation:
|
|
@@ -507,11 +515,12 @@ cloud_run:
|
|
|
507
515
|
resource.type="cloud_run_revision"
|
|
508
516
|
metric.type="run.googleapis.com/container/startup_latencies"
|
|
509
517
|
resource.labels.project_id="<%-projectId%>"
|
|
510
|
-
threshold_value:
|
|
518
|
+
threshold_value: 2000
|
|
511
519
|
duration: 300s
|
|
512
520
|
aggregations:
|
|
513
521
|
- alignment_period: 60s
|
|
514
|
-
per_series_aligner:
|
|
522
|
+
per_series_aligner: ALIGN_DELTA
|
|
523
|
+
cross_series_reducer: REDUCE_PERCENTILE_99
|
|
515
524
|
group_by_fields:
|
|
516
525
|
- resource.label.service_name
|
|
517
526
|
documentation:
|
|
@@ -530,7 +539,8 @@ spanner:
|
|
|
530
539
|
duration: 300s
|
|
531
540
|
aggregations:
|
|
532
541
|
- alignment_period: 60s
|
|
533
|
-
per_series_aligner:
|
|
542
|
+
per_series_aligner: ALIGN_MAX
|
|
543
|
+
cross_series_reducer: REDUCE_SUM
|
|
534
544
|
group_by_fields:
|
|
535
545
|
- resource.label.instance_id
|
|
536
546
|
documentation:
|