kubernetes/test/instrumentation
Han Kang 26b7e3a1e9 refactor static analysis code
Change-Id: I888585cc151e97fee08889a57fc20118733a60a5
2022-11-01 15:56:25 -07:00
..
documentation update documentation with custom collector metrics 2022-11-01 13:57:10 -07:00
testdata add support for parsing custom collectors from the stability framework 2022-11-01 13:56:57 -07:00
decode_metric.go refactor static analysis code 2022-11-01 15:56:25 -07:00
doc.go update documentation for stability framework 2022-10-31 15:17:24 -07:00
error.go Update test/instrumentation/error.go 2022-07-26 15:31:25 -07:00
find_stable_metric.go add support for parsing custom collectors from the stability framework 2022-11-01 13:56:57 -07:00
main_test.go update capabilities of static analysis parser 2022-09-27 17:21:14 -07:00
main.go adjust sizes and documentation 2022-10-25 16:32:55 -04:00
metric.go add support for parsing custom collectors from the stability framework 2022-11-01 13:56:57 -07:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
README.md update documentation for stability framework 2022-10-31 15:17:24 -07:00
stability-utils.sh update paths for documentation 2022-10-31 09:20:39 -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
update-documentation-metrics.sh add automated documentation generation from our static analysis pipeline 2022-10-25 14:44:09 -04:00
update-documentation.sh update documentation for stability framework 2022-10-31 15:17:24 -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

To update the list of documented metrics, please run:

./test/instrumentation/update-documentation-metrics.sh

To update the documented list of metrics for k8s/website, please run:

./test/instrumentation/update-documentation.sh