Release v0.10.0 Metrics Exporter
Metric Support
This release supports a new api to consume metrics data model and export it to stackdriver backend. The previous api consumed view data model. Both apis are supported and pervious api will continue to work as before.
Additional apis, StartMetricsExporter and StopMetricsExporter are introduced to work with new model of Interval Reader and Reader introduced in version 0.20.0 of OpenCensus Go library. The reader allows to read metrics from all producers registered with the library. StartMetricsExporter starts the interval reader which periodically reads metrics from all producers and exports them to the backend.
Using Metrics Data Model (New)
exporter := stackdriver.NewExporter(stackdriver.Option{})
exporter.StartMetricsExporter()
defer exporter.StopMetricsExporter()
Using View Data Model (Old)
exporter := stackdriver.NewExporter(stackdriver.Option{})
view.RegisterExporter(exporter)
Note: Use only one approach. Using both approach simultaneously will result into unspecified behavior.
Important Fixes
dc2fe43 Batch time series with different label values into same request. (#119)
Complete List of changes since previous release.
e393203 add Start and Stop function for metrics exporter. (#121)
dc2fe43 Batch time series with different label values into same request. (#119)
0ca8377 add support for exporting metrics data model (#109)
27663a7 Fix an issue with multiple calls of Autodetec func (#117)
81dc1cd Update go.mod and go.sum. (#113)
0b43b4e Remove exemplar for now. (#112)
fff47fb Fix dependency issues when GO111MODULE is disabled. (#111)
16fd214 turn on go11 module (#110)
eb72365 Fix metric descriptor convertion. (#108)
199f933 rename metrics.go to metrics_proto.go. (#107)
ed9eca6 Change ExportMetric api to ExportMetricProto (#106)
e9b8671 Revert "change ExportMetric api to ExportMetricProto (#104)" (#105)
bf0d8a4 change ExportMetric api to ExportMetricProto (#104)
ab5a58a Upgrade oc-proto version and fix errors. (#102)
4ef0c69 update .gitignore to exclude .idea (#97)
9fed8be Remove instance-id label from k8s_container resource. (#94)
aaad73f Fix k8s_container resource labels. (#93)
14131f5 add zero bucket if not present. (#89)
d2e06c1 Distinguish between gke_container and k8s_container monitored resource type (#90)
91f15dd go.mod: update dependencies and tidy up (#88)
88d38dc Add support for Float64 attribute. (#86)
7d76817 Integrate with core resource and known detectors (#84)
c06c82c skip equality check for cached metric descriptor for built-in metrics. (#81)
0f284fd skip creating metric descriptor for stackdriver built-in metrics. (#77)