Releases: census-ecosystem/opencensus-go-exporter-stackdriver
Release v0.12.8
Changes since v0.12.7
9366d36 Add option to provide resource based on metric descriptor. (#231)
8033da9 Small optimization to avoid unnecesarry allocations. (#228)
9cc5395 add wrapper around ioutil.ReadFile. (#226)
3504ffa fix typo. (#225)
e2f5be5 Resource per metric (#224)
76f086b Unit test using input and output proto files (#223)
4339afa add resource detector test. (#219)
2798eee Apply timeout to each worker in metrics_proto export (#222)
633d9ea Set a minimum size for reqsChan in batcher (#221)
6f7321c Allow sending CreateTimeSeriesReq in multiple goroutines (#213)
717ac5c add test to handle multiple timeseries for Summary metrics. (#220)
7ea215e Enforce consistent logic for CreateMetricDescriptor for stats and metrics (#217)
e1ae7ed use localhost to prevent security pop-up on macos. (#216)
a3453a5 Unit test (#215)
470fd47 Fix convertSummaryMetrics (#214)
c4af412 Upgrade dependencies (#210)
c5e91fb Explicitly set HasValue to true for LabelValue (#209)
ac1282a Fix equivalence test (#208)
b2a517b Use endpoint instead of connection in equivalence_test (#207)
619996f Use complete address when return from create fake server (#206)
746b104 go mod tidy (#205)
71d3e05 Remove unnecessary comment, check errors for PushMetricsProto (#204)
d50bb4a Do not try to start trace exporter in TestExportTimeSeriesWithDifferentLabels (#203)
6ee7f96 Remove leading 0 in histogram buckets in example (#201)
Release v0.12.7
Release v0.12.6
Changes since v0.12.2
Click to expand!
0a55998 Use NewReader for metrics reader init (#195)
321e549 Fix incorrect slice creation (#196)
3b40441 Add a metric batcher which preallocates batch sizes. (#194)
3a3e471 Fix proto import (#192)
7cac5ce Revert "Remove support for exporting ViewData (#188)" (#191)
211cb75 fix example to use new api to start and stop exporting. (#190)
4b7f306 Remove support for exporting ViewData (#188)
97b79b6 Rename ExportMetricsProtoSync to ExportMetricsProto (#189)
93f882d Remove the batching version for proto exporter (#187)
b0cbe77 Remove outdated option GetMonitoredResource (#186)
a8e01fd Remove mandatory opencensus_task label from node and respect metric prefix (#184)
6c1c12f Remove Gopkg support (#185)
7449e7d Fix unit for cumulative metrics and minor cleanups (#183)
7bb4fd6 Presanitize all the default keys and metric label keys. (#181)
270bb39 Small cleanup of the return values (#180)
9762c69 Set MetricKind and ValueType when sending TimeSeries (#182)
ffafe44 Cache seen resources for each export request (#179)
8a44032 Add an experimental API that exports metrics proto synchronously (#178)
bfde7f1 Add mapping for k8s node resource (#177)
bf39ce4 Upgrade dependencies in go.mod (#176)
5e806e0 Added mapping for kubernetes pod resource (#174)
6850d2e Upgrade dependencies in go.mod (#172)
655917a Use MetricServiceServer in fakeMetricService. (#168)
1aade25 Fix handling errors in when failing to upload metrics proto (#171)
e19adcf Don't use a timeout context when creating the metrics client. (#166)
09504ed print location detection error only when running on GCE. (#165)
0954e43 Remove unnecessary logging (#131)
91082ae Add resource translation readme file. (#163)
Release v0.12.2
Release v0.12.1
Release v0.12.0
Important Changes
- Added versioned dependency to resource package.
- Added support for transforming summary metrics to Cummulatives and Gauges.
Complete list of changes since release v0.11.1
5d4eb99 transform resources for metrics exported via ExportMetricsProto api (#158)
69e294b Fix resource mapping. (#155)
3a2251b convert summary metrics to cumulatives and gauges. (#152)
Release v0.11.0
Important Changes
- Fixed resource assignment in GKE and GCE environment. This was broken by release v0.10.0
Complete list of changes since release v0.10.0
9f1fc3b add support for label key description. (#136)
5cd96ff fix golint and add Makefile. (#138)
433871b Fix resource assignment in GKE and GCE environment when using metrics exporter. (#139)
b39028f add issue template (#137)
4351271 Don't overwrite agent label if already set (#132)
aed34d9 Update oc version in go.mod. (#129)
c34b175 Upgrade dependencies in go.mod (#125)
f6ea5dc Use cmp instead of reflect and json in tests. (#122)
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)
Release v0.9.1 (deduplicated metrics and CreateTimeSeriesRequests)
With these release, we've fixed a years-long standing issue in which uploading duplicate metrics within the same TimeSeries would cause this kind of error
err: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written:
Field timeSeries[?] had an invalid value: Duplicate TimeSeries encountered.
Only one point can be written per TimeSeries per request.: timeSeries[?]
By duplicate metrics, meaning those metrics that share the same "Type"/"Name" e.g. for illustrative purposes
{
"name": "projects/census-demos",
"time_series": [
{
"metric": {
"type": "custom.googleapis.com/opencensus/oce/dev/latency"
},
"points": [<points...>]
},
{
"metric": {
"type": "custom.googleapis.com/opencensus/oce/dev/latency"
},
"points": [<other_points...>]
}
]
}
which had plagued even the view.Exporter aka OpenCensus StatsExporter from day 1.
With the PR #74 to fix issue #73, there is a deduplication process that prevents putting duplicated Metrics in the same CreateTimeSeriesRequest.
The above issue #73 was exacerbated when Stackdriver Metrics exporter was added to the OpenCensus Agent and metrics were streamed in from various sources concurrently.
OpenCensus Proto Metrics exporter
With this release, this Stackdriver exporter now accepts OpenCensus Proto Metrics and converts them into Stackdriver Metrics. This is complementary to the first exporter which received view.Data aka OpenCensus Stats and converted those to Stackdriver Metrics.
The output of exporting OpenCensus Proto Metrics and OpenCensus stats aka view.Data is exactly the same and enforced by tests. This ensures that if a program was running alright before while using view.Data, that with Proto Metrics it will run transparently too.