This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a public method to convert OpenCensus View to MetricDescriptor.
This is useful if you want to use your code as source of truth of MetricDescritors. Managing MetricDescriptors outside of the Go code (e.g. in Terraform configs) is painful, as the changes to MD requires delete/recreate, after deleting all alert policies associated with the metric. On the other hand, the externally managed MDs are bound to be out of sync with what's present in the code. In the end we decide to just extract/collect views from our go code as source of truth, and thus we need to have a public method to convert views to MD.
- Loading branch information