update: rename updates collector to update (#1692)

This commit is contained in:
Jan-Otto Kröpke
2024-10-15 13:55:16 +02:00
committed by GitHub
parent 73755b8bfe
commit 332b0a8a1c
5 changed files with 12 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
//go:build windows
package updates
package update
import (
"errors"
@@ -20,7 +20,7 @@ import (
"github.com/yusufpapurcu/wmi"
)
const Name = "updates"
const Name = "update"
type Config struct {
online bool `yaml:"online"`

View File

@@ -1,12 +1,12 @@
package updates_test
package update_test
import (
"testing"
"github.com/prometheus-community/windows_exporter/internal/collector/updates"
"github.com/prometheus-community/windows_exporter/internal/collector/update"
"github.com/prometheus-community/windows_exporter/internal/testutils"
)
func BenchmarkCollector(b *testing.B) {
testutils.FuncBenchmarkCollector(b, "printer", updates.NewWithFlags)
testutils.FuncBenchmarkCollector(b, "printer", update.NewWithFlags)
}