Log http version string we compare with, rather than float we put in metric. (#659)
authorBrian Brazil <brian.brazil@robustperception.io>
Wed, 2 Sep 2020 16:14:20 +0000 (17:14 +0100)
committerGitHub <noreply@github.com>
Wed, 2 Sep 2020 16:14:20 +0000 (17:14 +0100)
See #658

Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
prober/http.go

index bcbbf25471e966f4f646117545a225acb553d967..125b508089197bc1e9728cd6363342591d618298 100644 (file)
@@ -523,7 +523,7 @@ func ProbeHTTP(ctx context.Context, target string, module config.Module, registr
                                }
                        }
                        if !found {
-                               level.Error(logger).Log("msg", "Invalid HTTP version number", "version", httpVersionNumber)
+                               level.Error(logger).Log("msg", "Invalid HTTP version number", "version", resp.Proto)
                                success = false
                        }
                }