diff --git a/integration/integration_test.go b/integration/integration_test.go index 9cf1e4b..ce5dd82 100644 --- a/integration/integration_test.go +++ b/integration/integration_test.go @@ -11,6 +11,7 @@ import ( "path/filepath" "runtime" "slices" + "strings" "testing" "time" @@ -305,6 +306,16 @@ func TestSMK6(t *testing.T) { }) } }) + + t.Run("metrics have required prefix", func(t *testing.T) { + t.Parallel() + + for _, m := range mfs { + if !strings.HasPrefix(*m.Name, "probe_") { + t.Fatalf("Metric %q not have the required prefix", *m.Name) + } + } + }) } func equals(expected float64) func(float64) bool {