Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update collector to use common data types from telemetry-exporter #5198

Merged
merged 15 commits into from
Mar 8, 2024

Conversation

shaun-nx
Copy link
Contributor

@shaun-nx shaun-nx commented Mar 5, 2024

Proposed changes

This PR integrates the common Data structure defined in nginx/telemetry-exporter#27 to allow NIC to generate its Schema.

This PR also adds two go generate annotations to the Data and NICResourceCounts structs to generate the required Attributes function. This ensures the data is of type Exportable

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Mar 5, 2024
go.mod Outdated Show resolved Hide resolved
@shaun-nx shaun-nx changed the title Telemetry/schema Update collector to use common data types from telemetry-exporter Mar 5, 2024
@github-actions github-actions bot removed the dependencies Pull requests that update a dependency file label Mar 8, 2024
@shaun-nx shaun-nx requested a review from danielnginx March 8, 2024 10:48
@shaun-nx shaun-nx marked this pull request as ready for review March 8, 2024 11:06
@shaun-nx shaun-nx requested a review from a team as a code owner March 8, 2024 11:06
@shaun-nx shaun-nx merged commit f9d049e into main Mar 8, 2024
77 checks passed
@shaun-nx shaun-nx deleted the telemetry/schema branch March 8, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants