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

feat: better node metrics chart #370

Merged
merged 5 commits into from
Sep 2, 2024
Merged

feat: better node metrics chart #370

merged 5 commits into from
Sep 2, 2024

Conversation

Ehco1996
Copy link
Owner

@Ehco1996 Ehco1996 commented Sep 2, 2024

No description provided.

@Ehco1996 Ehco1996 merged commit 22b6586 into master Sep 2, 2024
1 check passed
Ehco1996 added a commit that referenced this pull request Sep 3, 2024
This commit adds support for refreshing node and rule metrics in the `cmgrImpl` struct. The `QueryNodeMetrics` and `QueryRuleMetrics` methods now have an additional `refresh` parameter, which when set to `true`, refreshes the cache and retrieves the latest data.

The `QueryNodeMetrics` method now checks if `refresh` is `true` and updates the cache with the latest node metrics if needed. It then calls the `QueryNodeMetric` method to retrieve the requested metrics.

The `QueryRuleMetrics` method follows a similar pattern, refreshing the cache with the latest rule metrics if `refresh` is `true`, and then calling the `QueryRuleMetric` method to retrieve the metrics.

This change improves the accuracy of the metrics data by allowing users to retrieve the latest metrics when needed.

Refactor code to use GetAddrHost instead of ToString for Node struct
save work
save
save work
support parse rule metric
refine metrics label
feat: better node metrics chart (#370)
chore: Update dependencies and refactor transporter package for improved performance and readability (#369)
chore: use cgo-free sqlite driver
feat: add timepicker to dashboard (#367)
@Ehco1996 Ehco1996 deleted the better-chart branch September 11, 2024 01:50
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.

1 participant