Integrate prom controller with UI #60
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #59
This pull request introduces significant enhancements to the
ktop
application, focusing on integrating hybrid metrics support, improving configuration management, and enhancing the user interface for metrics visualization. Key changes include the addition of hybrid metrics support, a new configuration system, and updates to the display logic to reflect metrics source health and trends.Hybrid Metrics Support:
cmd/ktop.go
[1]k8s/client.go
[2] [3]Configuration Management:
config/metrics_config.go
to manage metrics-related settings, including source type, Prometheus-specific options, and display preferences. Default configurations are provided, and users can override settings via a YAML file or command-line flags. (config/metrics_config.go
[1]cmd/ktop.go
[2] [3]example-config.yaml
to demonstrate configuration options and structure for users. (example-config.yaml
example-config.yamlR1-R69)Display Enhancements:
application/app_ctrl.go
[1] [2]application/app_ctrl.go
application/app_ctrl.goR188-R203)These changes collectively improve the flexibility, usability, and reliability of the
ktop
application for monitoring Kubernetes clusters.