kubernetes/test/instrumentation/README.md
Han Kang 8dffb57188 add documentation about auto-generating auto-documentation
Change-Id: I6bfa6a7e8d83d211f4e52865e033b9911f607c58
2022-10-25 15:09:54 -04:00

1.1 KiB

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 (which you need to run first before upgrading the documentation markdown file).

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

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

./test/instrumentation/update-documentation.sh