Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Add new output plugin for sending OpenTelemetry metrics over gRPC. #232

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

hexedpackets
Copy link
Contributor

@hexedpackets hexedpackets commented Jan 21, 2021

Currently batches and distibutions are not supported. I plan to add them in later if this turns out to be useful.

Closes #228

@hexedpackets hexedpackets requested a review from a team January 21, 2021 16:37
}

@Override
public void sendBatch(Batch batch) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder why batch is not supported ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its just not necessary right now, and the best way to map a batch to the OT metric definition isn't 100% clear so I'm kicking the can for the moment.

metricBuilder.setUnit(unit);
}

ExportMetricsServiceRequest request = ExportMetricsServiceRequest.newBuilder()
Copy link
Contributor

Choose a reason for hiding this comment

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

How is this metric used upstream ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Depends on the receiver. For Lightstep, the metrics are grouped on the name and then allow tag filtering/grouping under that.

@hexedpackets hexedpackets merged commit 0c9852c into master Jan 22, 2021
@delete-merged-branch delete-merged-branch bot deleted the opentelemetry branch January 22, 2021 13:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an OpenTelemetry output plugin
2 participants