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 FetchAllHostsMetrics for SignalFx using new API #25

Merged
merged 3 commits into from
Mar 3, 2021

Conversation

zorro786
Copy link
Contributor

@zorro786 zorro786 commented Mar 2, 2021

Signed-off-by: Abdul Qadeer [email protected]

This resolves #24

@zorro786 zorro786 requested a review from wangchen615 as a code owner March 2, 2021 23:46
@zorro786 zorro786 requested a review from ridv March 3, 2021 00:31
Copy link
Contributor

@ridv ridv left a comment

Choose a reason for hiding this comment

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

Left two comments

pkg/watcher/internal/metricsprovider/signalfx.go Outdated Show resolved Hide resolved
wangchen615
wangchen615 previously approved these changes Mar 3, 2021
Fix bug in result set size
Average returned values for metrics per window size

Signed-off-by: Abdul Qadeer <[email protected]>
@zorro786 zorro786 requested review from ridv and wangchen615 March 3, 2021 17:30
Copy link
Contributor

@ridv ridv left a comment

Choose a reason for hiding this comment

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

LGTM

// Find the average across returned values per 1 minute resolution
var sum float64
var count float64
for _, value := range values {
Copy link
Contributor

Choose a reason for hiding this comment

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

For testing, we may want to break this arithmetic mean calculation into its own function but not a blocker for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure will do it in future PR when I add tests #26

@zorro786 zorro786 merged commit 6c7e96e into paypal:master Mar 3, 2021
@zorro786 zorro786 deleted the fix-24 branch March 3, 2021 22:40
@zorro786 zorro786 added the enhancement New feature or request label Aug 26, 2021
@zorro786 zorro786 added this to the v0.2.0 milestone Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement SignalFx fetch all host metrics
3 participants