Skip to content

feat(exporters): replace opencensus with opentelemetry#1297

Open
hakman wants to merge 20 commits into
kubernetes:masterfrom
hakman:pr-1141-fixes
Open

feat(exporters): replace opencensus with opentelemetry#1297
hakman wants to merge 20 commits into
kubernetes:masterfrom
hakman:pr-1141-fixes

Conversation

@hakman

@hakman hakman commented Jul 5, 2026

Copy link
Copy Markdown
Member

Based on @daveoy's #1141, adding remaining fixes.
Closes #1008
/cc @SergeyKanzhelev @wangzhen127

daveoy and others added 10 commits July 5, 2026 18:34
* feat(exporters): replace opencensus with opentelemetry

* fix(stackdriver_exporter): use metrics util constants

* chore:  use global meter and init

* feat(exporters): add resource info, use global meter

* chore: update deps

* fix: use a gauge directly, narrow scope info

* cleanup: deps

* fix: try initOnce pattern for global problem metrics

* fix(problemmetrics): init is being called too late

* fix(gauge): remove _ratio suffix

* fix: clean up after rebase

* fix: cleanup after rebase

* fix: cleanup after rebase

* fix: cleanup after rebase

* fix: remove nodename

* fix(test): remove instance id check

* fix(test): add attr values

* fix(test): unexported resources

* fix(test): initialize global problem metrics manager

* fix(lint): make the linter happy
@kubernetes-prow

Copy link
Copy Markdown
Contributor

@hakman: GitHub didn't allow me to request PR reviews from the following users: daveoy.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

Based on #1141, adding remaining fixes.
Closes #1008
/cc @SergeyKanzhelev @wangzhen127 @daveoy

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kubernetes-prow kubernetes-prow Bot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 5, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow kubernetes-prow Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 5, 2026
@hakman hakman force-pushed the pr-1141-fixes branch 2 times, most recently from 9b0ac16 to 7dc5034 Compare July 5, 2026 16:36
- bump google.golang.org/grpc to v1.79.3 (GHSA-p77j-4mvh-x3m3)
- bump the OpenTelemetry stack to v1.44.0 (GHSA-mh2q-q3fh-2475, GHSA-hfvc-g4fc-pqhx)
- bump test-module logrus to v1.9.3 (GHSA-4f99-4q7p-p3gh), fsnotify, otelhttp
- align go-openapi/* and genproto/googleapis/api with master and tidy modules
@hakman

hakman commented Jul 5, 2026

Copy link
Copy Markdown
Member Author

/test pull-npd-e2e-test

disk_percent_used declared only device_name but recorded four labels
(device_name, fs_type, mount_option, state). With per-metric label
validation, Record now rejects the undeclared labels and the metric is
dropped from the export (caught by the metriconly e2e).

Record only device_name, preserving the schema NPD has exported since the
metric was introduced: the OpenCensus view aggregated by device_name and
dropped the other tags, so on the wire this metric has always had a single
label. It also maps to the Google-owned
compute.googleapis.com/guest/disk/percent_used descriptor, which can reject
writes carrying undeclared label keys. Add a regression test pinning the
schema.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate OpenCensus to OpenTelemetry

2 participants