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

Remove internal protos usage in Prometheusremotewrite exporter #3184

Merged

Conversation

sincejune
Copy link
Contributor

Description:
Remove internal protos usage in Prometheusremotewrite exporter, closes #3108

@sincejune sincejune requested a review from a team May 14, 2021 17:19
func (prwe *PrwExporter) handleScalarMetric(tsMap map[string]*prompb.TimeSeries, resource resourcev1.Resource, metric *otlp.Metric) error {
switch metric.Data.(type) {
func (prwe *PrwExporter) handleScalarMetric(tsMap map[string]*prompb.TimeSeries, resource pdata.Resource, metric pdata.Metric) error {
switch metric.DataType() {
Copy link
Member

Choose a reason for hiding this comment

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

Probably we can get rid of this and embed directly into the previous switch in PushMetrics. Let's do this in the next PR please :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Filed PR here: #3261

@bogdandrutu bogdandrutu merged commit a96e010 into open-telemetry:main May 14, 2021
Frefreak pushed a commit to Frefreak/opentelemetry-collector that referenced this pull request May 15, 2021
@sincejune sincejune deleted the remove-internal-protos-usage branch May 23, 2021 13:08
dashpole pushed a commit to dashpole/opentelemetry-collector that referenced this pull request Jun 14, 2021
ankitnayan pushed a commit to SigNoz/opentelemetry-collector that referenced this pull request Jul 27, 2021
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.

Prometheusremotewrite exporter should use "pdata" not internal protos
2 participants