@@ -1630,7 +1630,7 @@ func TestObjective_GrafanaRules(t *testing.T) {
16301630 Rules : []monitoringv1.Rule {{
16311631 Record : "pyrra_objective" ,
16321632 Expr : intstr .FromString (`0.99` ),
1633- Labels : map [string ]string {"slo" : "monitoring-http-errors" },
1633+ Labels : map [string ]string {"slo" : "monitoring-http-errors" , "description" : "" , "info" : "99.000% in 4w" },
16341634 }, {
16351635 Record : "pyrra_window" ,
16361636 Expr : intstr .FromInt (int ((28 * 24 * time .Hour ).Seconds ())),
@@ -1666,7 +1666,7 @@ func TestObjective_GrafanaRules(t *testing.T) {
16661666 Rules : []monitoringv1.Rule {{
16671667 Record : "pyrra_objective" ,
16681668 Expr : intstr .FromString (`0.999` ),
1669- Labels : map [string ]string {"slo" : "monitoring-grpc-errors" },
1669+ Labels : map [string ]string {"slo" : "monitoring-grpc-errors" , "description" : "" , "info" : "99.900% in 4w" },
16701670 }, {
16711671 Record : "pyrra_window" ,
16721672 Expr : intstr .FromInt (int ((28 * 24 * time .Hour ).Seconds ())),
@@ -1698,7 +1698,7 @@ func TestObjective_GrafanaRules(t *testing.T) {
16981698 Rules : []monitoringv1.Rule {{
16991699 Record : "pyrra_objective" ,
17001700 Expr : intstr .FromString ("0.995" ),
1701- Labels : map [string ]string {"slo" : "monitoring-http-latency" },
1701+ Labels : map [string ]string {"slo" : "monitoring-http-latency" , "description" : "" , "info" : "99.500% in 4w must be faster than 1s" },
17021702 }, {
17031703 Record : "pyrra_window" ,
17041704 Expr : intstr .FromInt (2419200 ),
@@ -1734,7 +1734,7 @@ func TestObjective_GrafanaRules(t *testing.T) {
17341734 Rules : []monitoringv1.Rule {{
17351735 Record : "pyrra_objective" ,
17361736 Expr : intstr .FromString ("0.995" ),
1737- Labels : map [string ]string {"slo" : "monitoring-grpc-latency" },
1737+ Labels : map [string ]string {"slo" : "monitoring-grpc-latency" , "description" : "" , "info" : "99.500% in 1w must be faster than 600ms" },
17381738 }, {
17391739 Record : "pyrra_window" ,
17401740 Expr : intstr .FromInt (604800 ),
@@ -1766,7 +1766,7 @@ func TestObjective_GrafanaRules(t *testing.T) {
17661766 Rules : []monitoringv1.Rule {{
17671767 Record : "pyrra_objective" ,
17681768 Expr : intstr .FromString ("0.99" ),
1769- Labels : map [string ]string {"slo" : "monitoring-prometheus-operator-errors" },
1769+ Labels : map [string ]string {"slo" : "monitoring-prometheus-operator-errors" , "description" : "" , "info" : "99.000% in 2w" },
17701770 }, {
17711771 Record : "pyrra_window" ,
17721772 Expr : intstr .FromInt (1209600 ),
@@ -1798,7 +1798,7 @@ func TestObjective_GrafanaRules(t *testing.T) {
17981798 Rules : []monitoringv1.Rule {{
17991799 Record : "pyrra_objective" ,
18001800 Expr : intstr .FromString (`0.99` ),
1801- Labels : map [string ]string {"slo" : "apiserver-write-response-errors" },
1801+ Labels : map [string ]string {"slo" : "apiserver-write-response-errors" , "description" : "" , "info" : "99.000% in 2w" },
18021802 }, {
18031803 Record : "pyrra_window" ,
18041804 Expr : intstr .FromInt (int ((14 * 24 * time .Hour ).Seconds ())),
0 commit comments