kubernetes/test/instrumentation
Han Kang 287738c125 move MergeBuckets into component-base so we can properly support it for static-analysis
Change-Id: I137413b5b0328487a7bcd70eca79a8b0ae6dea51
2022-10-18 10:55:09 -07:00
..
testdata move MergeBuckets into component-base so we can properly support it for static-analysis 2022-10-18 10:55:09 -07:00
decode_metric.go move MergeBuckets into component-base so we can properly support it for static-analysis 2022-10-18 10:55:09 -07:00
error.go Update test/instrumentation/error.go 2022-07-26 15:31:25 -07:00
find_stable_metric.go fix parsing error on labels 2022-10-12 09:25:43 -07:00
main_test.go update capabilities of static analysis parser 2022-09-27 17:21:14 -07:00
main.go io/ioutil has already been deprecated in golang 1.16, so replace all ioutil with io and os 2022-02-03 05:32:12 +08:00
metric.go add support for timing histograms and const labels 2022-10-11 17:19:14 -07:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
README.md update readme for instrumentation static analysis code 2022-10-12 21:22:57 -07:00
stability-utils.sh Add support for summary metrics for stablity checks 2022-07-26 15:31:25 -07:00
test-update.sh Add support for summary metrics for stablity checks 2022-07-26 15:31:25 -07:00
test-verify.sh Add support for summary metrics for stablity checks 2022-07-26 15:31:25 -07:00

This directory contains the regression test for controlling the list of stable metrics

If you add or remove a stable metric, this test will fail and you will need to update the golden list of tests stored in testdata/. Changes to that file require review by sig-instrumentation.

To update the list, run

./hack/update-generated-stable-metrics.sh

Add the changed file to your PR, then send for review.

If you want to test the stability framework, you can add metrics to the file in test/instrumentation/testdata/pkg/kubelet/metrics/metrics.go and run test verification via:

./test/instrumentation/test-verify.sh

To update the golden test list, you can run:

./test/instrumentation/test-update.sh