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

Introduce metricsConsumer and gaugeMetricConsumer. #5426

Merged

Conversation

keep94
Copy link
Contributor

@keep94 keep94 commented Sep 23, 2021

Description:

This is the first pull request for adding a tanzu observability metrics exporter.
This PR introduces the metricsConsumer type which consumes pdata.Metrics instances by sending the metrics within to
tanzu observability.
A metricsConsumer instance is made up of multiple metricConsumer instances. Each metricConsumer instance consumes
a specific type of metric such as Gauge, Sum, or Histogram.
This PR also introduces a function that returns a metricConsumer that consumes gauge metrics.
Future PRs will introduce new implementations of metricConsumer. Each new implementation will consume a different type
of metric.

Testing:

Unit tests only. The instances that will send data to tanzu observability are interfaces. The unit tests create mock
implementations of these interfaces and verify that the right calls were made to them.

@keep94 keep94 requested review from a team and tigrannajaryan September 23, 2021 22:15
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 23, 2021

CLA Signed

The committers are authorized under a signed CLA.

  • ✅ keep94 (66793aa7856c0a586ffa829dc9636efc9149a112)

@keep94 keep94 force-pushed the tobs_in_progress_metrics_exporter branch 2 times, most recently from f466330 to 900c332 Compare September 24, 2021 02:08
@github-actions
Copy link
Contributor

github-actions bot commented Oct 2, 2021

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Oct 2, 2021
@tigrannajaryan
Copy link
Member

@oppegard @thepeterstone please review as codeowners.

Copy link
Member

@oppegard oppegard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis and I reviewed this in person, and pushed a commit with some formatting changes. lgtm.

@keep94 keep94 force-pushed the tobs_in_progress_metrics_exporter branch from c21c3de to 35089c0 Compare October 7, 2021 22:14
@keep94 keep94 force-pushed the tobs_in_progress_metrics_exporter branch from 35089c0 to 789ed57 Compare October 13, 2021 16:21
@keep94
Copy link
Contributor Author

keep94 commented Oct 14, 2021

Hi. It appears that make -C ./receiver/k8sclusterreceiver/ test command is failing when running unit tests. When I run this command locally, all the tests pass. I tried rebasing to the latest version of the main branch f89d7a1 but when I run the k8sclusterreceiver tests, they still pass when I run locally. Could this be a flaky test? Keep in mind that the code changes I made don't affect k8sclusterreceiver. Please advise what I should do next?

@keep94 keep94 force-pushed the tobs_in_progress_metrics_exporter branch from 789ed57 to ae68125 Compare October 14, 2021 18:43
@bogdandrutu bogdandrutu merged commit f166fb9 into open-telemetry:main Oct 19, 2021
@keep94 keep94 deleted the tobs_in_progress_metrics_exporter branch October 19, 2021 15:33
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.

5 participants