Skip to content

Commit

Permalink
Merge pull request #48 from eslam-gomaa/feat/advancedTable-get-target…
Browse files Browse the repository at this point in the history
…-data-from-label-or-value

isolating old code
  • Loading branch information
eslam-gomaa authored Jun 26, 2024
2 parents 3ff2953 + 699a7aa commit a28097e
Show file tree
Hide file tree
Showing 14 changed files with 176 additions and 4,525 deletions.
4 changes: 2 additions & 2 deletions dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ dashboard:
type: asciiGraph # || progressBar || asciiText || markdown || markdown Table ||Table
metricUnit: kb # byte_to_kb_mb_gb_tb # dynamic_byte_convert
metric: >
topk(20, sum(irate(kafka_server_brokertopicmetrics_bytesin_total{topic=~"$topic"}[5m])) by (strimzi_io_cluster, topic)) / 1024
sort_desc(sum(irate(kafka_server_brokertopicmetrics_bytesin_total{topic=~"$topic"}[5m])) by (strimzi_io_cluster, topic)) / 1024
custom_key: "🍅 {{topic}}"
asciiGraphOptions:
height: 0
Expand All @@ -116,7 +116,7 @@ dashboard:
type: asciiGraph # || progressBarList || asciiText
metricUnit: kb
metric: >
topk(20, sum(irate(kafka_server_brokertopicmetrics_bytesout_total{topic=~"$topic"}[5m])) by (strimzi_io_cluster, topic)) / 1024
sort_desc(sum(irate(kafka_server_brokertopicmetrics_bytesout_total{topic=~"$topic"}[5m])) by (strimzi_io_cluster, topic)) / 1024
custom_key: "🥕 {{topic}}"
asciiGraphOptions:
height: 0
Expand Down
1 change: 0 additions & 1 deletion kubePtop/ascii_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ def create_graph(self, names=[], height=17, width=45, max_height=20, max_width=5
else:
self.width = width


self.names = names

# if len(names) > len(self.colors):
Expand Down
223 changes: 0 additions & 223 deletions kubePtop/cli.py

This file was deleted.

Loading

0 comments on commit a28097e

Please sign in to comment.