Re: [influxdata/telegraf] Add a new input plugin for InfiniBand card/port statistics (#6631)

From: notifications@github.com
Domain: IP info github.com
MX-server: IP info out-2.smtp.github.com
Size: 2390 Bytes
Create: 2020-01-16
Update: 2020-01-16
Score: 0
Safe: Yes

Outbound domains: github.com |

@willfurnell commented on this pull request.


In plugins/inputs/infiniband/infiniband_linux.go:

> +
+import (
+	"fmt"
+	"github.com/Mellanox/rdmamap"
+	"github.com/influxdata/telegraf"
+	"github.com/influxdata/telegraf/plugins/inputs"
+	"strconv"
+)
+
+// Gather statistics from our infiniband cards
+func (s *Infiniband) Gather(acc telegraf.Accumulator) error {
+
+	rdmaDevices := rdmamap.GetRdmaDeviceList()
+
+	if len(rdmaDevices) == 0 {
+		return fmt.Errorf("No InfiniBand devices found on this system! Check /sys/class/infiniband/ exists")

replaced based on your comment


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Want to protect your real email from messages like this? Use TempM email and be more secure on the internet.