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

fix: handle min-max for network dashboard #1763

Merged
merged 5 commits into from
Feb 23, 2023
Merged

fix: handle min-max for network dashboard #1763

merged 5 commits into from
Feb 23, 2023

Conversation

Hardikl
Copy link
Contributor

@Hardikl Hardikl commented Feb 22, 2023

  • Removed from NVMe/FC ports as this table don't have column #C for used%

@cla-bot cla-bot bot added the cla-signed label Feb 22, 2023
@Hardikl Hardikl linked an issue Feb 22, 2023 that may be closed by this pull request
cgrinds
cgrinds previously approved these changes Feb 22, 2023
@@ -221,6 +226,18 @@ func doPanel(pathPrefix string, key gjson.Result, value gjson.Result, mt *metric
}
}

// In case of gradient-gauge and percent(0.0-1.0), we must override min and max value
for _, properties := range propertiesMap {
if properties["unit"] == "percentunit" && properties["custom.displayMode"] == "gradient-gauge" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it only apply to gradient-gauge?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Checked with other types which displayed value other than text.
Working as expected with:
color-background-solid
color-background

Don't work as expected with:
lcd-gauge
basic

Will add below 2 types in that condition

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -639,6 +639,14 @@
}
]
}
},
{
Copy link
Contributor

Choose a reason for hiding this comment

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

could you share an example of before and after. A live setup will be helpful to see.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added Network Updated dashboard for testing in 10.195.64.86 machine.

In our clusters, all the values of nic_util_percent are very less.
image

For testing purpose only, just multiply value by 100 in query #c in both the places.

  1. Screenshot from old Network dashboard where no min-max set

image

  1. Screenshot from updated network dashboard where min-max values are set

image

Copy link
Contributor

Choose a reason for hiding this comment

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

some of the overrides are not found. Could you check and remove stale entries

Copy link
Contributor

Choose a reason for hiding this comment

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

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed.

@cgrinds cgrinds merged commit 1cefd56 into main Feb 23, 2023
@cgrinds cgrinds deleted the guage_changes branch February 23, 2023 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Harvest Network dashboard drilldowns do not show gauge
3 participants