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

Implement Summary Metric in Prometheus RemoteWrite Exporter #2083

Merged

Conversation

JasonXZLiu
Copy link
Member

Description:

This PR implements backwards compatibility to the Prometheus Summary metric in the OTel Prometheus Remote Write Exporter. It is based off the Summary datapoint proto in this PR and the Summary implementation in this PR.

Link to tracking Issue: open-telemetry/opentelemetry-specification#1146

Testing:

  • Unit tests were added to exporter_test.go

@JasonXZLiu JasonXZLiu requested a review from a team November 6, 2020 18:47
@codecov
Copy link

codecov bot commented Nov 6, 2020

Codecov Report

Merging #2083 (4ae9f82) into master (0f8e822) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2083      +/-   ##
==========================================
+ Coverage   92.10%   92.12%   +0.01%     
==========================================
  Files         278      278              
  Lines       17030    17060      +30     
==========================================
+ Hits        15685    15716      +31     
+ Misses        924      923       -1     
  Partials      421      421              
Impacted Files Coverage Δ
exporter/prometheusremotewriteexporter/exporter.go 92.43% <100.00%> (+0.54%) ⬆️
exporter/prometheusremotewriteexporter/helper.go 99.52% <100.00%> (+0.58%) ⬆️
translator/internaldata/resource_to_oc.go 91.78% <0.00%> (ø)

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 0f8e822...4ae9f82. Read the comment docs.

@JasonXZLiu JasonXZLiu changed the title Prometheus summary exporter Implement Summary Metric in Prometheus RemoteWrite Exporter Nov 6, 2020
exporter/prometheusremotewriteexporter/DESIGN.md Outdated Show resolved Hide resolved
exporter/prometheusremotewriteexporter/README.md Outdated Show resolved Hide resolved
@bogdandrutu bogdandrutu self-assigned this Nov 7, 2020
@bogdandrutu bogdandrutu closed this Nov 9, 2020
@bogdandrutu bogdandrutu reopened this Nov 9, 2020
@bogdandrutu bogdandrutu merged commit 4056e79 into open-telemetry:master Nov 9, 2020
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
* Create a common makefile for components to be added. Use the same approach as taken by otel contrib for the main Makefile to identify sources to avoid touching component code

* new timestamp processor

* add timestamp to distribution

* rebase Makefile

* fix test

* Update pkg/processor/timestamp/config.go

Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>

* remove the need to validate +/-

* add a default clause that will error out if the metric type is not supported

* clean up more references to offsetFn

* gofmt

* remove named import

* organize replace directives together

* use a relative path

* use timestampprocessor for the package name

* move to go 1.19

* move offsetFn

Co-authored-by: Dmitrii Anoshin <anoshindx@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.

2 participants