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

SignalFx exporter: Add host metadata synchronization #1039

Merged
merged 1 commit into from
Sep 28, 2020

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Sep 16, 2020

Description:
This change introduces host metadata updates functionality in Signalfx exporter. Synchronization happens once first metric batch is received. It looks for dimensions set by resourcedetection processor

@dmitryax dmitryax requested a review from a team September 16, 2020 06:26
@dmitryax dmitryax changed the title SignalFx exporter: Add periodic host metadata updates syncronization SignalFx exporter: Add host metadata updates Sep 16, 2020
@dmitryax dmitryax force-pushed the sfx-host-metadata branch 2 times, most recently from 55a3c8f to e3ca399 Compare September 16, 2020 06:55
@dmitryax dmitryax changed the title SignalFx exporter: Add host metadata updates SignalFx exporter: Add host metadata synchronization Sep 16, 2020
@dmitryax dmitryax force-pushed the sfx-host-metadata branch 2 times, most recently from a914693 to 0235014 Compare September 16, 2020 07:45
@codecov
Copy link

codecov bot commented Sep 16, 2020

Codecov Report

Merging #1039 into master will increase coverage by 0.03%.
The diff coverage is 96.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1039      +/-   ##
==========================================
+ Coverage   89.59%   89.63%   +0.03%     
==========================================
  Files         272      273       +1     
  Lines       13240    13302      +62     
==========================================
+ Hits        11863    11923      +60     
- Misses       1011     1013       +2     
  Partials      366      366              
Flag Coverage Δ
#integration 73.57% <ø> (ø)
#unit 88.75% <96.92%> (+0.03%) ⬆️

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

Impacted Files Coverage Δ
exporter/signalfxexporter/config.go 90.69% <ø> (ø)
exporter/signalfxexporter/dimensions/metadata.go 70.21% <ø> (ø)
exporter/signalfxexporter/exporter.go 91.56% <77.77%> (-1.95%) ⬇️
exporter/signalfxexporter/hostmetadata/metadata.go 100.00% <100.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 cd5dacb...78987ba. Read the comment docs.

@dmitryax dmitryax added the WIP label Sep 16, 2020
@dmitryax
Copy link
Member Author

as discussed with @jrcamp it will be changes to use cloud unique id instead of host

@jrcamp
Copy link
Contributor

jrcamp commented Sep 24, 2020

@dmitryax I think the PR has become too big. I think it'd be good to break it up at least into two pieces, one being stuff that came from smart agent that's already been vetted there and the second is new code that may need a closer look.

@dmitryax
Copy link
Member Author

@jrcamp broke it down as you suggested. The first part: #1118

@dmitryax dmitryax force-pushed the sfx-host-metadata branch 2 times, most recently from 9436d96 to 71c3522 Compare September 25, 2020 03:59
@jrcamp
Copy link
Contributor

jrcamp commented Sep 25, 2020

lgtm after the assert thing is fixed and #1100 is merged (should be soon) so that can be removed here.

This change introduces host metadata updates functionality in Signalfx exporter. Synchronization happens once first metric batch is received. It looks for dimensions set by resourcedetection processor
@dmitryax
Copy link
Member Author

@jrcamp , PR rebased

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.

3 participants