Skip to content

mgr/dashboard: Consider null values as zero in grafana panels - #53807

Merged
aaSharma14 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-63088-main
Oct 25, 2023
Merged

aaSharma14 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-63088-main

Conversation

@aaSharma14

Copy link
Copy Markdown
Contributor

After upgrading from RHCS4 to RHCS5..some of the grafana charts broke. This is because in RHCS5 we do not generate the metrics if its value is zero as a result the null value from that metric breaks the grafana charts or graphs. This PR is to fix the above mentioned issue.

Fixes: https://tracker.ceph.com/issues/63088

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

After upgrading from RHCS4 to RHCS5..some of the grafana charts broke.
This is because in RHCS5 we do not generate the metrics if its value is
zero as a result the null value from that metric breaks the grafana
charts or graphs. This PR is to fix the above mentioned issue.

Fixes: https://tracker.ceph.com/issues/63088

Signed-off-by: Aashish Sharma <[email protected]>
@aaSharma14

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@nizamial09

Copy link
Copy Markdown
Member

jenkins test windows

@avanthakkar

Copy link
Copy Markdown
Contributor

After upgrading from RHCS4 to RHCS5..some of the grafana charts broke. This is because in RHCS5 we do not generate the metrics if its value is zero as a result the null value from that metric breaks the grafana charts or graphs. This PR is to fix the above mentioned issue.

Fixes: https://tracker.ceph.com/issues/63088

Contribution Guidelines

* To sign and title your commits, please refer to [Submitting Patches to Ceph](https://github.com/ceph/ceph/blob/main/SubmittingPatches.rst).

* If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to [Submitting Patches to Ceph - Backports](https://github.com/ceph/ceph/blob/master/SubmittingPatches-backports.rst) for the proper workflow.

Checklist

* Tracker (select at least one)
  
  * [ ]  References tracker ticket
  * [ ]  Very recent bug; references commit where it was introduced
  * [ ]  New feature (ticket optional)
  * [ ]  Doc update (no ticket needed)
  * [ ]  Code cleanup (no ticket needed)

* Component impact
  
  * [ ]  Affects [Dashboard](https://tracker.ceph.com/projects/dashboard/issues/new), opened tracker ticket
  * [ ]  Affects [Orchestrator](https://tracker.ceph.com/projects/orchestrator/issues/new), opened tracker ticket
  * [ ]  No impact that needs to be tracked

* Documentation (select at least one)
  
  * [ ]  Updates relevant documentation
  * [ ]  No doc update is appropriate

* Tests (select at least one)
  
  * [ ]  Includes [unit test(s)](https://docs.ceph.com/en/latest/dev/developer_guide/tests-unit-tests/)
  * [ ]  Includes [integration test(s)](https://docs.ceph.com/en/latest/dev/developer_guide/testing_integration_tests/)
  * [ ]  Includes bug reproducer
  * [ ]  No tests

Show available Jenkins commands

But does this applies to recent upstream reef versions as well? do we have any panels breaking in main branch ?

@aaSharma14

Copy link
Copy Markdown
Contributor Author

After upgrading from RHCS4 to RHCS5..some of the grafana charts broke. This is because in RHCS5 we do not generate the metrics if its value is zero as a result the null value from that metric breaks the grafana charts or graphs. This PR is to fix the above mentioned issue.
Fixes: https://tracker.ceph.com/issues/63088

Contribution Guidelines

* To sign and title your commits, please refer to [Submitting Patches to Ceph](https://github.com/ceph/ceph/blob/main/SubmittingPatches.rst).

* If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to [Submitting Patches to Ceph - Backports](https://github.com/ceph/ceph/blob/master/SubmittingPatches-backports.rst) for the proper workflow.

Checklist

* Tracker (select at least one)
  
  * [ ]  References tracker ticket
  * [ ]  Very recent bug; references commit where it was introduced
  * [ ]  New feature (ticket optional)
  * [ ]  Doc update (no ticket needed)
  * [ ]  Code cleanup (no ticket needed)

* Component impact
  
  * [ ]  Affects [Dashboard](https://tracker.ceph.com/projects/dashboard/issues/new), opened tracker ticket
  * [ ]  Affects [Orchestrator](https://tracker.ceph.com/projects/orchestrator/issues/new), opened tracker ticket
  * [ ]  No impact that needs to be tracked

* Documentation (select at least one)
  
  * [ ]  Updates relevant documentation
  * [ ]  No doc update is appropriate

* Tests (select at least one)
  
  * [ ]  Includes [unit test(s)](https://docs.ceph.com/en/latest/dev/developer_guide/tests-unit-tests/)
  * [ ]  Includes [integration test(s)](https://docs.ceph.com/en/latest/dev/developer_guide/testing_integration_tests/)
  * [ ]  Includes bug reproducer
  * [ ]  No tests

Show available Jenkins commands

But does this applies to recent upstream reef versions as well? do we have any panels breaking in main branch ?

Am not sure, Have we changed the behavior of not generating metrics if the value is 0 in reef?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants