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

Add Prometheus Remote Write Exporter supporting Cortex - conversion and export for Summary OTLP metrics #1649

Closed
wants to merge 25 commits into from

Conversation

huyan0
Copy link
Member

@huyan0 huyan0 commented Aug 27, 2020

This PR is part of a series of PRs implementing a Prometheus remote write exporter supporting Cortex.
**See related PR #1577, PR #1643 **

Description: This PR adds export support for summary metrics for Prometheus remote write integrated backends, such as Cortex. The exporter drops non-cumulative monotonic, histogram, and summary OTLP metrics.

Please note this metrics exporter does not support Prometheus default labels such as job or instance labels. An issue addressing Prometheus default labels will be filed later. Another related feature is to derive labels from a Resource. This functionality already exists in the Go SDK and will be implemented in another PR. This feature could allow users to specify which attributes they want to add as labels.

Link to tracking Issue: #1150
Related issues are:
Metrics aggregation proposal: #1422
Prometheus exporter not functional: #1255
Related spec discussion: #731

Documentation:

cc: @huyan0 @alolita @jmacd @bogdandrutu

@huyan0 huyan0 changed the title Summary exporter Add Prometheus Remote Write Exporter supporting Cortex - conversion and export for Summary OTLP metrics Aug 27, 2020
@codecov
Copy link

codecov bot commented Aug 27, 2020

Codecov Report

Merging #1649 into master will increase coverage by 0.01%.
The diff coverage is 94.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1649      +/-   ##
==========================================
+ Coverage   92.24%   92.25%   +0.01%     
==========================================
  Files         262      262              
  Lines       18765    18843      +78     
==========================================
+ Hits        17309    17383      +74     
- Misses       1042     1046       +4     
  Partials      414      414              
Impacted Files Coverage Δ
exporter/prometheusremotewriteexporter/exporter.go 93.37% <93.54%> (+2.80%) ⬆️
exporter/prometheusremotewriteexporter/factory.go 100.00% <100.00%> (ø)
exporter/prometheusremotewriteexporter/helper.go 100.00% <100.00%> (ø)
service/defaultcomponents/defaults.go 85.45% <100.00%> (+0.26%) ⬆️
translator/internaldata/resource_to_oc.go 87.03% <0.00%> (-1.86%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03faf67...d07f56c. Read the comment docs.

@bogdandrutu
Copy link
Member

Unfortunately this will have to wait couple of weeks until summary support is added back to the metrics internal pipeline

@bogdandrutu
Copy link
Member

I am sorry that you cannot finish this in time for your internship but we had to make this decision in order to make progress on the protocol

@huyan0
Copy link
Member Author

huyan0 commented Aug 31, 2020

I am sorry that you cannot finish this in time for your internship but we had to make this decision in order to make progress on the protocol

Not a problem and understood. Really appreciate all the reviews and help from you!

@bogdandrutu
Copy link
Member

Closing this for the moment, when Summary will be supported will reopen or reuse the code

Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
Fixed some warnings reported by clang.

-Wnewline-eof
  no newline at end of file

-Wc++98-compat-extra-semi
  extra ';' outside of a function is incompatible with C++98

-Winconsistent-missing-destructor-override
  '~XXX' overrides a destructor but is not marked 'override'

-Wheader-hygiene
  using namespace directive in global context in header

-Wunused-parameter
  unused parameter

Fixed some warnings reported by gcc.

-Werror=missing-field-initializers
  missing initializer for member ‘opentelemetry::v1::sdk::trace::SamplingResult::trace_state’

-Werror=unused-variable
  unused variable

-Werror=unused-parameter
  unused parameter
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.

2 participants