collector: fix wrong perfdata instances (#1763)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2024-11-24 01:52:25 +01:00
committed by GitHub
parent 26d6dddf25
commit 4c0574536f
6 changed files with 11 additions and 11 deletions

View File

@@ -58,7 +58,7 @@ func (c *Collector) Close() error {
func (c *Collector) Build(_ *slog.Logger, _ *mi.Session) error {
var err error
c.perfDataCollector, err = perfdata.NewCollector("SMB Server Shares", nil, []string{
c.perfDataCollector, err = perfdata.NewCollector("SMB Server Shares", perfdata.InstanceAll, []string{
currentOpenFileCount,
treeConnectCount,
})