diff --git a/cmd/dcgm-exporter/main.go b/cmd/dcgm-exporter/main.go index e8fc2517..ee92932c 100644 --- a/cmd/dcgm-exporter/main.go +++ b/cmd/dcgm-exporter/main.go @@ -192,6 +192,10 @@ func main() { Usage: "Use systemd socket activation listeners instead of port listeners (Linux only).", EnvVars: []string{"DCGM_EXPORTER_SYSTEMD_SOCKET"}, }) + } else { + err := "dcgm-exporter is only supported on Linux." + logrus.Fatal(err) + return } c.Action = func(c *cli.Context) error {