Skip to content

receiver/prometheus: roundtrip Prometheus->Pdata direct conversion without OpenCensus#5184

Closed
odeke-em wants to merge 4 commits into
open-telemetry:mainfrom
orijtech:receiver-prometheus-wireUp-roundTrip
Closed

receiver/prometheus: roundtrip Prometheus->Pdata direct conversion without OpenCensus#5184
odeke-em wants to merge 4 commits into
open-telemetry:mainfrom
orijtech:receiver-prometheus-wireUp-roundTrip

Conversation

@odeke-em
Copy link
Copy Markdown
Member

Wire up and use the direct Prometheus->Pdata conversion end to end.
With this change the receiver will no longer need OpenCensus.

This change will involve more follow-ups that just migrate over the tests,
because we don't want a super bloated/massive PR.

Fixes #4892
Depends on PR open-telemetry/opentelemetry-collector#3694
Depends on PR open-telemetry/opentelemetry-collector#3695

@odeke-em odeke-em requested review from a team and mx-psi September 11, 2021 08:20
@odeke-em odeke-em force-pushed the receiver-prometheus-wireUp-roundTrip branch from 26d4c51 to 860cb7f Compare September 11, 2021 08:20
@odeke-em odeke-em force-pushed the receiver-prometheus-wireUp-roundTrip branch 4 times, most recently from 36a0016 to 4aa5666 Compare September 11, 2021 08:47
@bogdandrutu
Copy link
Copy Markdown
Member

Please fix lint and unittests

odeke-em referenced this pull request in orijtech/opentelemetry-collector-contrib Sep 13, 2021
This change updates internal code and is meant to alleviate the
massive PR #5184 which is our eventual end-goal. No need for tests
because the code path isn't used so we have a license to update
it towards the end goal.

Particularly it:
* adds open-telemetry/opentelemetry-collector#3116 to the otlp version.
* copies the sortPoints method over verbatim.
* sets DataType and Name on pdata metrics.

Updates PR #5184
@odeke-em odeke-em force-pushed the receiver-prometheus-wireUp-roundTrip branch 5 times, most recently from c0cd01f to 0df490c Compare September 13, 2021 22:38
odeke-em referenced this pull request in orijtech/opentelemetry-collector-contrib Sep 13, 2021
Adds helper functions to help create metrics for OTLP
pdata translations. The need for these helpers comes
from PR #5184 in which we need to translate directly
from Prometheus->Pdata instead of Prometheus->OpenCensus->Pdata,
but we shall need to modify both receiver/prometheus*/internal and
the base directory.

This code is heavily used in the mentioned PR and thus no
tests included in this change.

Updates PR #5184
@odeke-em odeke-em force-pushed the receiver-prometheus-wireUp-roundTrip branch 4 times, most recently from 6bb6f7d to c8b9757 Compare September 17, 2021 19:13
…thout OpenCensus

Wire up and use the direct Prometheus->Pdata conversion end to end.
With this change the receiver will no longer need OpenCensus.

This change will involve more follow-ups that just migrate over the tests,
because we don't want a super bloated/massive PR.

Fixes #4892
Depends on PR open-telemetry/opentelemetry-collector#3694
Depends on PR open-telemetry/opentelemetry-collector#3695
@odeke-em odeke-em force-pushed the receiver-prometheus-wireUp-roundTrip branch 2 times, most recently from 6ac1d06 to 9605687 Compare September 21, 2021 09:08
@odeke-em odeke-em force-pushed the receiver-prometheus-wireUp-roundTrip branch from 9605687 to de159f6 Compare September 24, 2021 16:55
@github-actions
Copy link
Copy Markdown
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
@bogdandrutu bogdandrutu removed the Stale label Oct 6, 2021
@github-actions
Copy link
Copy Markdown
Contributor

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 14, 2021
@mx-psi mx-psi removed the Stale label Oct 14, 2021
@bogdandrutu
Copy link
Copy Markdown
Member

Closing this PR as inactive, since the feedback was not addressed for more than 1m.

hex1848 pushed a commit to hex1848/opentelemetry-collector-contrib that referenced this pull request Jun 2, 2022
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
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.

receiver/prometheus: remove Prometheus->OpenCensusProto->OTLP Pdata, to use Prometheus->OTLP Pdata

4 participants