Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Monitoring: Fix graph refresh on alert and rule details pages
Pass `query` and `ruleDuration` to `Graph` instead of the whole `rule` object to prevent some unnecessary re-rendering. This also removes the need to memoize `queries`. Memoize `labels` in `AlertsDetailsPage` to avoid triggering unnecessary re-renders of `Graph`. Initialize `pollInterval` to `undefined` instead of `null`. `null` indicates that polling was disabled, whereas `undefined` indicates that it is not specified and the `QueryBrowser` should use its default poll interval.
- Loading branch information
Showing
4 changed files
with
29 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters