diff --git a/agent/kubviz/k8smetrics_agent.go b/agent/kubviz/k8smetrics_agent.go index 8fd89963..068360eb 100644 --- a/agent/kubviz/k8smetrics_agent.go +++ b/agent/kubviz/k8smetrics_agent.go @@ -100,7 +100,7 @@ func main() { } if nc == nil { - nc, _ = nats.Connect(natsurl, nats.Name("K8s Metrics"), nats.Token(token)) + nc, err = nats.Connect(natsurl, nats.Name("K8s Metrics"), nats.Token(token)) events.CheckErr(err) } js, err := nc.JetStream()