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

[sumologicexporter] Enable metrics pipeline #2117

Merged
merged 11 commits into from
Feb 20, 2021

Conversation

sumo-drosiek
Copy link
Member

@sumo-drosiek sumo-drosiek commented Jan 18, 2021

Description:

Enable metrics pipeline for sumologicexporter. For now only prometheus format is supported. Rest of formats it's going to be implemented in future PRs

Link to tracking Issue:

#1498

Testing:

Unit tests

Documentation:

In-code comments

@sumo-drosiek
Copy link
Member Author

cc: @pmm-sumo @pmalek-sumo

@codecov
Copy link

codecov bot commented Jan 18, 2021

Codecov Report

Merging #2117 (8a77422) into main (5010cd7) will decrease coverage by 0.07%.
The diff coverage is 82.27%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2117      +/-   ##
==========================================
- Coverage   90.39%   90.32%   -0.08%     
==========================================
  Files         394      394              
  Lines       19347    19475     +128     
==========================================
+ Hits        17489    17590     +101     
- Misses       1397     1419      +22     
- Partials      461      466       +5     
Flag Coverage Δ
integration 69.84% <ø> (+0.06%) ⬆️
unit 89.10% <82.27%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
exporter/sumologicexporter/config.go 100.00% <ø> (ø)
exporter/sumologicexporter/factory.go 70.58% <16.66%> (-11.56%) ⬇️
exporter/sumologicexporter/prometheus_formatter.go 99.20% <50.00%> (+<0.01%) ⬆️
exporter/sumologicexporter/exporter.go 78.75% <76.71%> (-3.17%) ⬇️
exporter/sumologicexporter/sender.go 90.18% <92.95%> (-1.05%) ⬇️
exporter/sumologicexporter/test_data.go 100.00% <100.00%> (ø)
receiver/k8sclusterreceiver/watcher.go 95.29% <0.00%> (-2.36%) ⬇️
receiver/prometheusexecreceiver/receiver.go 88.33% <0.00%> (+2.50%) ⬆️

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 5010cd7...8a77422. Read the comment docs.

@github-actions
Copy link
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 Jan 26, 2021
Base automatically changed from master to main January 28, 2021 00:57
dyladan referenced this pull request in dynatrace-oss-contrib/opentelemetry-collector-contrib Jan 29, 2021
@bogdandrutu
Copy link
Member

@sumo-drosiek was this reviewed by someone that is in the owners for sumologic exporter?

@github-actions github-actions bot removed the Stale label Jan 30, 2021
@sumo-drosiek
Copy link
Member Author

@sumo-drosiek was this reviewed by someone that is in the owners for sumologic exporter?

cc: @pmalek-sumo

Copy link
Contributor

@pmm-sumo pmm-sumo left a comment

Choose a reason for hiding this comment

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

Tested the metrics exporting and all looks good overall. I would just clarify README.md with the actually supported export formats (e.g. carbon2 is not supported yet)

Dominik Rosiek and others added 2 commits February 1, 2021 14:34
@github-actions
Copy link
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 Feb 11, 2021
@sumo-drosiek
Copy link
Member Author

@bogdandrutu Could we merge this PR?

@github-actions github-actions bot removed the Stale label Feb 12, 2021
@github-actions
Copy link
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 Feb 19, 2021
@bogdandrutu bogdandrutu merged commit acda163 into open-telemetry:main Feb 20, 2021
pmatyjasek-sumo referenced this pull request in pmatyjasek-sumo/opentelemetry-collector-contrib Apr 28, 2021
* [sumologicexporter] Rename logs related buffer names to include log string

Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>

* [sumologicexporter] Add metrics support to sender

Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>

* [sumologicexporter] Initialise prometheusFormatter in exporter

* [sumologicexporter] Use prometheusFormatter in sendMetrics

* [sumologicexporter] Add support for PrometheusFormat in sender

* [sumologicexporter] Add tests for sendMetrics and fix sender

Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>

* [sumologicexporter] Add and enable metrics for exporter

Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>

* [sumologicexporter] Use consts for sender

Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>

* [sumologicexporter] Skip some metrics tests due to time factor

* [sumologicexporter] Set prometheus as default metrics format

Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>

* Fix default value used in tests

Co-authored-by: Przemek Maciolek <pmaciolek@sumologic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants