mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-09 12:06:35 +00:00
udp: Added UDP collector (#1725)
This commit is contained in:
16
internal/collector/udp/udp_test.go
Normal file
16
internal/collector/udp/udp_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package udp_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/prometheus-community/windows_exporter/internal/collector/udp"
|
||||
"github.com/prometheus-community/windows_exporter/internal/testutils"
|
||||
)
|
||||
|
||||
func BenchmarkCollector(b *testing.B) {
|
||||
testutils.FuncBenchmarkCollector(b, udp.Name, udp.NewWithFlags)
|
||||
}
|
||||
|
||||
func TestCollector(t *testing.T) {
|
||||
testutils.TestCollector(t, udp.New, nil)
|
||||
}
|
||||
Reference in New Issue
Block a user