@@ -1263,7 +1263,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1263
1263
}, {
1264
1264
Alert : "SLOMetricAbsent" ,
1265
1265
Expr : intstr .FromString (`absent(http_requests_total{job="thanos-receive-default"}) == 1` ),
1266
- For : monitoringDuration ("2m " ),
1266
+ For : monitoringDuration ("10m " ),
1267
1267
Labels : map [string ]string {"job" : "thanos-receive-default" , "slo" : "monitoring-http-errors" , "severity" : "critical" },
1268
1268
}},
1269
1269
},
@@ -1280,7 +1280,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1280
1280
}, {
1281
1281
Alert : "SLOMetricAbsent" ,
1282
1282
Expr : intstr .FromString (`absent(http_requests_total{job="thanos-receive-default"}) == 1` ),
1283
- For : monitoringDuration ("2m " ),
1283
+ For : monitoringDuration ("10m " ),
1284
1284
Labels : map [string ]string {"slo" : "monitoring-http-errors" , "severity" : "critical" },
1285
1285
}},
1286
1286
},
@@ -1297,7 +1297,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1297
1297
}, {
1298
1298
Alert : "SLOMetricAbsent" ,
1299
1299
Expr : intstr .FromString (`absent(http_requests_total{handler=~"/api.*",job="thanos-receive-default"}) == 1` ),
1300
- For : monitoringDuration ("2m " ),
1300
+ For : monitoringDuration ("10m " ),
1301
1301
Labels : map [string ]string {"slo" : "monitoring-http-errors" , "severity" : "critical" },
1302
1302
}},
1303
1303
},
@@ -1314,7 +1314,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1314
1314
}, {
1315
1315
Alert : "SLOMetricAbsent" ,
1316
1316
Expr : intstr .FromString (`absent(grpc_server_handled_total{grpc_method="Write",grpc_service="conprof.WritableProfileStore",job="api"}) == 1` ),
1317
- For : monitoringDuration ("2m " ),
1317
+ For : monitoringDuration ("3m " ),
1318
1318
Labels : map [string ]string {"grpc_method" : "Write" , "grpc_service" : "conprof.WritableProfileStore" , "job" : "api" , "slo" : "monitoring-grpc-errors" , "severity" : "critical" },
1319
1319
}},
1320
1320
},
@@ -1331,7 +1331,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1331
1331
}, {
1332
1332
Alert : "SLOMetricAbsent" ,
1333
1333
Expr : intstr .FromString (`absent(grpc_server_handled_total{grpc_method="Write",grpc_service="conprof.WritableProfileStore",job="api"}) == 1` ),
1334
- For : monitoringDuration ("2m " ),
1334
+ For : monitoringDuration ("3m " ),
1335
1335
Labels : map [string ]string {"grpc_method" : "Write" , "grpc_service" : "conprof.WritableProfileStore" , "slo" : "monitoring-grpc-errors" , "severity" : "critical" },
1336
1336
}},
1337
1337
},
@@ -1352,12 +1352,12 @@ func TestObjective_IncreaseRules(t *testing.T) {
1352
1352
}, {
1353
1353
Alert : "SLOMetricAbsent" ,
1354
1354
Expr : intstr .FromString (`absent(http_request_duration_seconds_count{code=~"2..",job="metrics-service-thanos-receive-default"}) == 1` ),
1355
- For : monitoringDuration ("2m " ),
1355
+ For : monitoringDuration ("6m " ),
1356
1356
Labels : map [string ]string {"job" : "metrics-service-thanos-receive-default" , "slo" : "monitoring-http-latency" , "severity" : "critical" },
1357
1357
}, {
1358
1358
Alert : "SLOMetricAbsent" ,
1359
1359
Expr : intstr .FromString (`absent(http_request_duration_seconds_bucket{code=~"2..",job="metrics-service-thanos-receive-default",le="1"}) == 1` ),
1360
- For : monitoringDuration ("2m " ),
1360
+ For : monitoringDuration ("6m " ),
1361
1361
Labels : map [string ]string {"job" : "metrics-service-thanos-receive-default" , "slo" : "monitoring-http-latency" , "le" : "1" , "severity" : "critical" },
1362
1362
}},
1363
1363
},
@@ -1375,7 +1375,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1375
1375
Record : "http_request_duration_seconds:increase4w" ,
1376
1376
Expr : intstr .FromString (`histogram_fraction(0, 1, increase(http_request_duration_seconds{code=~"2..",job="metrics-service-thanos-receive-default"}[4w])) * histogram_count(increase(http_request_duration_seconds{code=~"2..",job="metrics-service-thanos-receive-default"}[4w]))` ),
1377
1377
Labels : map [string ]string {"job" : "metrics-service-thanos-receive-default" , "slo" : "monitoring-http-latency" , "le" : "1" },
1378
- //}, {
1378
+ // }, {
1379
1379
// Alert: "SLOMetricAbsent",
1380
1380
// Expr: intstr.FromString(`absent(http_request_duration_seconds{code=~"2..",job="metrics-service-thanos-receive-default"}) == 1`),
1381
1381
// For: monitoringDuration("2m"),
@@ -1399,12 +1399,12 @@ func TestObjective_IncreaseRules(t *testing.T) {
1399
1399
}, {
1400
1400
Alert : "SLOMetricAbsent" ,
1401
1401
Expr : intstr .FromString (`absent(http_request_duration_seconds_count{code=~"2..",job="metrics-service-thanos-receive-default"}) == 1` ),
1402
- For : monitoringDuration ("2m " ),
1402
+ For : monitoringDuration ("6m " ),
1403
1403
Labels : map [string ]string {"slo" : "monitoring-http-latency" , "severity" : "critical" },
1404
1404
}, {
1405
1405
Alert : "SLOMetricAbsent" ,
1406
1406
Expr : intstr .FromString (`absent(http_request_duration_seconds_bucket{code=~"2..",job="metrics-service-thanos-receive-default",le="1"}) == 1` ),
1407
- For : monitoringDuration ("2m " ),
1407
+ For : monitoringDuration ("6m " ),
1408
1408
Labels : map [string ]string {"slo" : "monitoring-http-latency" , "le" : "1" , "severity" : "critical" },
1409
1409
}},
1410
1410
},
@@ -1425,12 +1425,12 @@ func TestObjective_IncreaseRules(t *testing.T) {
1425
1425
}, {
1426
1426
Alert : "SLOMetricAbsent" ,
1427
1427
Expr : intstr .FromString (`absent(http_request_duration_seconds_count{code=~"2..",handler=~"/api.*",job="metrics-service-thanos-receive-default"}) == 1` ),
1428
- For : monitoringDuration ("2m " ),
1428
+ For : monitoringDuration ("6m " ),
1429
1429
Labels : map [string ]string {"slo" : "monitoring-http-latency" , "severity" : "critical" },
1430
1430
}, {
1431
1431
Alert : "SLOMetricAbsent" ,
1432
1432
Expr : intstr .FromString (`absent(http_request_duration_seconds_bucket{code=~"2..",handler=~"/api.*",job="metrics-service-thanos-receive-default",le="1"}) == 1` ),
1433
- For : monitoringDuration ("2m " ),
1433
+ For : monitoringDuration ("6m " ),
1434
1434
Labels : map [string ]string {"slo" : "monitoring-http-latency" , "le" : "1" , "severity" : "critical" },
1435
1435
}},
1436
1436
},
@@ -1451,12 +1451,12 @@ func TestObjective_IncreaseRules(t *testing.T) {
1451
1451
}, {
1452
1452
Alert : "SLOMetricAbsent" ,
1453
1453
Expr : intstr .FromString (`absent(grpc_server_handling_seconds_count{grpc_method="Write",grpc_service="conprof.WritableProfileStore",job="api"}) == 1` ),
1454
- For : monitoringDuration ("1m " ),
1454
+ For : monitoringDuration ("2m " ),
1455
1455
Labels : map [string ]string {"slo" : "monitoring-grpc-latency" , "job" : "api" , "grpc_method" : "Write" , "grpc_service" : "conprof.WritableProfileStore" , "severity" : "critical" },
1456
1456
}, {
1457
1457
Alert : "SLOMetricAbsent" ,
1458
1458
Expr : intstr .FromString (`absent(grpc_server_handling_seconds_bucket{grpc_method="Write",grpc_service="conprof.WritableProfileStore",job="api",le="0.6"}) == 1` ),
1459
- For : monitoringDuration ("1m " ),
1459
+ For : monitoringDuration ("2m " ),
1460
1460
Labels : map [string ]string {"slo" : "monitoring-grpc-latency" , "job" : "api" , "grpc_method" : "Write" , "grpc_service" : "conprof.WritableProfileStore" , "le" : "0.6" , "severity" : "critical" },
1461
1461
}},
1462
1462
},
@@ -1477,12 +1477,12 @@ func TestObjective_IncreaseRules(t *testing.T) {
1477
1477
}, {
1478
1478
Alert : "SLOMetricAbsent" ,
1479
1479
Expr : intstr .FromString (`absent(grpc_server_handling_seconds_count{grpc_method="Write",grpc_service="conprof.WritableProfileStore",job="api"}) == 1` ),
1480
- For : monitoringDuration ("1m " ),
1480
+ For : monitoringDuration ("2m " ),
1481
1481
Labels : map [string ]string {"slo" : "monitoring-grpc-latency" , "grpc_method" : "Write" , "grpc_service" : "conprof.WritableProfileStore" , "severity" : "critical" },
1482
1482
}, {
1483
1483
Alert : "SLOMetricAbsent" ,
1484
1484
Expr : intstr .FromString (`absent(grpc_server_handling_seconds_bucket{grpc_method="Write",grpc_service="conprof.WritableProfileStore",job="api",le="0.6"}) == 1` ),
1485
- For : monitoringDuration ("1m " ),
1485
+ For : monitoringDuration ("2m " ),
1486
1486
Labels : map [string ]string {"slo" : "monitoring-grpc-latency" , "grpc_method" : "Write" , "grpc_service" : "conprof.WritableProfileStore" , "le" : "0.6" , "severity" : "critical" },
1487
1487
}},
1488
1488
},
@@ -1499,7 +1499,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1499
1499
}, {
1500
1500
Alert : "SLOMetricAbsent" ,
1501
1501
Expr : intstr .FromString (`absent(prometheus_operator_reconcile_operations_total) == 1` ),
1502
- For : monitoringDuration ("1m " ),
1502
+ For : monitoringDuration ("5m " ),
1503
1503
Labels : map [string ]string {"slo" : "monitoring-prometheus-operator-errors" , "severity" : "critical" },
1504
1504
}, {
1505
1505
Record : "prometheus_operator_reconcile_errors:increase2w" ,
@@ -1508,7 +1508,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1508
1508
}, {
1509
1509
Alert : "SLOMetricAbsent" ,
1510
1510
Expr : intstr .FromString (`absent(prometheus_operator_reconcile_errors_total) == 1` ),
1511
- For : monitoringDuration ("1m " ),
1511
+ For : monitoringDuration ("5m " ),
1512
1512
Labels : map [string ]string {"slo" : "monitoring-prometheus-operator-errors" , "severity" : "critical" },
1513
1513
}},
1514
1514
},
@@ -1525,7 +1525,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1525
1525
}, {
1526
1526
Alert : "SLOMetricAbsent" ,
1527
1527
Expr : intstr .FromString (`absent(prometheus_operator_reconcile_operations_total) == 1` ),
1528
- For : monitoringDuration ("1m " ),
1528
+ For : monitoringDuration ("5m " ),
1529
1529
Labels : map [string ]string {"slo" : "monitoring-prometheus-operator-errors" , "severity" : "critical" },
1530
1530
}, {
1531
1531
Record : "prometheus_operator_reconcile_errors:increase2w" ,
@@ -1534,7 +1534,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1534
1534
}, {
1535
1535
Alert : "SLOMetricAbsent" ,
1536
1536
Expr : intstr .FromString (`absent(prometheus_operator_reconcile_errors_total) == 1` ),
1537
- For : monitoringDuration ("1m " ),
1537
+ For : monitoringDuration ("5m " ),
1538
1538
Labels : map [string ]string {"slo" : "monitoring-prometheus-operator-errors" , "severity" : "critical" },
1539
1539
}},
1540
1540
},
@@ -1551,7 +1551,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1551
1551
}, {
1552
1552
Alert : "APIServerMetricAbsent" ,
1553
1553
Expr : intstr .FromString (`absent(apiserver_request_total{job="apiserver",verb=~"POST|PUT|PATCH|DELETE"}) == 1` ),
1554
- For : monitoringDuration ("1m " ),
1554
+ For : monitoringDuration ("5m " ),
1555
1555
Labels : map [string ]string {"job" : "apiserver" , "slo" : "apiserver-write-response-errors" , "severity" : "critical" },
1556
1556
}},
1557
1557
},
@@ -1572,12 +1572,12 @@ func TestObjective_IncreaseRules(t *testing.T) {
1572
1572
}, {
1573
1573
Alert : "SLOMetricAbsent" ,
1574
1574
Expr : intstr .FromString (`absent(apiserver_request_duration_seconds_count{job="apiserver",resource=~"resource|",verb=~"LIST|GET"}) == 1` ),
1575
- For : monitoringDuration ("1m " ),
1575
+ For : monitoringDuration ("5m " ),
1576
1576
Labels : map [string ]string {"job" : "apiserver" , "slo" : "apiserver-read-resource-latency" , "severity" : "critical" },
1577
1577
}, {
1578
1578
Alert : "SLOMetricAbsent" ,
1579
1579
Expr : intstr .FromString (`absent(apiserver_request_duration_seconds_bucket{job="apiserver",le="0.1",resource=~"resource|",verb=~"LIST|GET"}) == 1` ),
1580
- For : monitoringDuration ("1m " ),
1580
+ For : monitoringDuration ("5m " ),
1581
1581
Labels : map [string ]string {"job" : "apiserver" , "slo" : "apiserver-read-resource-latency" , "le" : "0.1" , "severity" : "critical" },
1582
1582
}},
1583
1583
},
@@ -1598,7 +1598,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1598
1598
}, {
1599
1599
Alert : "SLOMetricAbsent" ,
1600
1600
Expr : intstr .FromString (`absent(up) == 1` ),
1601
- For : monitoringDuration ("2m " ),
1601
+ For : monitoringDuration ("10m " ),
1602
1602
Labels : map [string ]string {"severity" : "critical" , "slo" : "up-targets" },
1603
1603
}},
1604
1604
},
@@ -1619,7 +1619,7 @@ func TestObjective_IncreaseRules(t *testing.T) {
1619
1619
}, {
1620
1620
Alert : "SLOMetricAbsent" ,
1621
1621
Expr : intstr .FromString (`absent(up{instance!~"(127.0.0.1|localhost).*"}) == 1` ),
1622
- For : monitoringDuration ("2m " ),
1622
+ For : monitoringDuration ("10m " ),
1623
1623
Labels : map [string ]string {"severity" : "critical" , "slo" : "up-targets" },
1624
1624
}},
1625
1625
},
0 commit comments