From 1182c848fafd32ed7995a967ceb193edde4c69f6 Mon Sep 17 00:00:00 2001 From: eslam-gomaa Date: Wed, 10 May 2023 07:42:37 +0300 Subject: [PATCH] update vertion to v0.0.6 --- kubePtop/cli.py | 1 + kubePtop/node_metrics.py | 2 +- kubePtop/pod_monitor.py | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kubePtop/cli.py b/kubePtop/cli.py index 163cea6..0912301 100644 --- a/kubePtop/cli.py +++ b/kubePtop/cli.py @@ -116,6 +116,7 @@ def argparse(self): parser.add_argument('-s', '--sort-by-mem-usage', required=False, action='store_true', help='Sort top result by memory usage') parser.add_argument('-o', '--option', type=str, required=False, choices=['cloud', 'json'], help='options for "kptop node||pod" (currently supported in "kptop node")') parser.add_argument('-cj', '--colorize-json', required=False, action='store_true', help='Colorize Json output (with "-o json")') + # parser.add_argument('-q', '--query', type=str, required=False, help='options for "Run a custom query') # parser.add_argument('-D', '--dashboard', type=str, required=False, metavar='', help='Specify a dashboard') # parser.add_argument('-L', '--list-dashboards', required=False, action='store_true', help='List available dashboards') diff --git a/kubePtop/node_metrics.py b/kubePtop/node_metrics.py index 0d51b82..fb34e08 100644 --- a/kubePtop/node_metrics.py +++ b/kubePtop/node_metrics.py @@ -1323,7 +1323,7 @@ def topNode(self, node=".*"): "region": "", "az": "", "instance_type": "", - "cluster_env": "", + "cluster_env": "Unknown", "node_group_capacity_type": "", "node_group_name": "", } diff --git a/kubePtop/pod_monitor.py b/kubePtop/pod_monitor.py index 24301fb..f192a57 100644 --- a/kubePtop/pod_monitor.py +++ b/kubePtop/pod_monitor.py @@ -556,7 +556,7 @@ def watch_threads(self): Markdown("Bytes Write", justify='center'), Text.from_ansi(disk_write_bytes_graph.graph + f"\n {disk_write_bytes_graph.colors_description_str}"), ) - layout["body2_b_a"].update(Panel(group_disk_io, title="[b]Network IO", padding=(1, 1))) + layout["body2_b_a"].update(Panel(group_disk_io, title="[b]Disk IO", padding=(1, 1))) diff --git a/setup.py b/setup.py index 58afe3b..528d8e9 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name = 'kptop', - version = '0.0.5', + version = '0.0.6', author = 'Eslam Gomaa', # license = '', description = 'A CLI tool that provides Monitoring for Kubernetes resources on the terminal through Prometheus metircs',