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

HELM-446: Convert Perf datasource NaN values to nulls #792

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

synqotik
Copy link
Contributor

Convert any 'NaN' values received by the Performance data source to nulls. This was done in v8 of this plugin.

Was causing issues with for example the Stat Grafana visualization panel using the Calculation "Last *", which displays the last non-null value, however it would consider "NaN" to be a valid value and display it instead of a valid numeric value.

Flows has the nanToZero feature which may be more appropriate for flows data.

External References

mmahacek
mmahacek previously approved these changes Jun 29, 2023
Copy link
Contributor

@mmahacek mmahacek left a comment

Choose a reason for hiding this comment

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

Tested artifact and was able to replicate working behavior from v8 👍
image

@synqotik synqotik marked this pull request as draft June 29, 2023 20:05
@synqotik
Copy link
Contributor Author

Tested artifact and was able to replicate working behavior from v8 👍 image

thanks! have to fix a Sonar issue, so may need re-approval...

@synqotik synqotik force-pushed the jira/HELM-446-perf-convert-nan-to-null branch from 633fa5e to c5d0ffc Compare June 29, 2023 21:09
@sonarcloud
Copy link

sonarcloud bot commented Jun 29, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@synqotik
Copy link
Contributor Author

Refactored PerformanceHelpers.measurementResponseToDataFrame to make SonarCloud happy

@synqotik synqotik marked this pull request as ready for review June 29, 2023 21:13
@synqotik synqotik requested a review from mmahacek June 29, 2023 21:13
@synqotik
Copy link
Contributor Author

Noted a few variables that could be const, I'll include those in my next PR.

@synqotik synqotik merged commit b703c5b into release-9.x Jun 29, 2023
@synqotik synqotik deleted the jira/HELM-446-perf-convert-nan-to-null branch June 29, 2023 21:19
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