@@ -46,7 +46,7 @@ Ready: Checks the readiness of an endpoint, which returns OK if the Prometheus s
4646 check .ExitError (fmt .Errorf (output ))
4747 }
4848 p := perfdata.PerfdataList {
49- {Label : "statuscode" , Value : sc },
49+ {Label : "statuscode" , Value : float64 ( sc ) },
5050 }
5151
5252 check .ExitRaw (rc , output , "|" , p .String ())
@@ -68,10 +68,6 @@ Ready: Checks the readiness of an endpoint, which returns OK if the Prometheus s
6868
6969 p := perfdata.PerfdataList {
7070 {Label : "statuscode" , Value : 200 },
71- {Label : "version" , Value : info .Version },
72- {Label : "builddate" , Value : info .BuildDate },
73- {Label : "builduser" , Value : info .BuildUser },
74- {Label : "revision" , Value : info .Revision },
7571 }
7672
7773 check .ExitRaw (rc , output , "|" , p .String ())
@@ -85,7 +81,7 @@ Ready: Checks the readiness of an endpoint, which returns OK if the Prometheus s
8581 }
8682
8783 p := perfdata.PerfdataList {
88- {Label : "statuscode" , Value : sc },
84+ {Label : "statuscode" , Value : float64 ( sc ) },
8985 }
9086
9187 check .ExitRaw (rc , output , "|" , p .String ())
0 commit comments