- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ValidateMetric (0.14 sec)
-
tests/integration/telemetry/api/customize_metrics_test.go
// check tag removed if strings.Contains(httpMetricVal, removedTag) { t.Errorf("failed to remove tag: %v", removedTag) } util.ValidateMetric(t, cluster, promInst, httpDestinationQuery, 1) util.ValidateMetric(t, cluster, promInst, grpcDestinationQuery, 1) // By default, envoy histogram has 20 buckets, annotation changes it to 10
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 5.5K bytes - Viewed (0) -
tests/integration/telemetry/util.go
if err != nil { t.Logf("value: %s", val.String()) return "", fmt.Errorf("could not find metric value: %v", err) } t.Logf("get value %v", got) return val.String(), nil } func ValidateMetric(t framework.TestContext, cluster cluster.Cluster, prometheus prometheus.Instance, query prometheus.Query, want float64) { t.Helper() err := retry.UntilSuccess(func() error { got, err := prometheus.QuerySum(cluster, query)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Oct 13 16:30:22 UTC 2022 - 4.8K bytes - Viewed (0) -
tests/integration/telemetry/policy/helper_test.go
return fmt.Errorf("expected metadata %v=%v, got %q", k, v, got) } } } return nil }, }) if tc.Expected.Query.Metric != "" { util.ValidateMetric(t, t.Clusters().Default(), prometheus, tc.Expected.Query, 1) } }) } }) } func setupEcho(t framework.TestContext, mode TrafficPolicy) (echo.Instance, echo.Target) { t.Helper()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 11.4K bytes - Viewed (0) -
tests/integration/telemetry/api/stats_test.go
util.PromDiff(t, promInst, cluster, grpcSourceQuery) return err } return nil }, retry.Delay(1*time.Second), retry.Timeout(300*time.Second)) util.ValidateMetric(t, cluster, promInst, grpcSourceQuery, 1) }) }) } }) } func buildGRPCQuery(metric string) (destinationQuery prometheus.Query) { ns := apps.Namespace
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 17.3K bytes - Viewed (0)