Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Summary table column spacing is not optimal

オープン
#17 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
cli

調査の方向性

wavectl show alert コマンドから始め、--name Kubernetes の有無で出力を比較します。サーバーの結果がクライアント側で絞り込まれる箇所と、サマリーテーブルの間隔が計算される箇所を追跡します。表示される列が除外されたアラートではなく最終的にフィルタリングされたアラート集合を使用し、表示されるテーブル出力を維持できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

If the user has used resource options other than the --customerTag, the column spacing can be suboptimal.

For example see here

$ ./wavectl show alert --name Kubernetes
ID               NAME                                                                                     STATUS                              SEVERITY
1523082347619    Kubernetes - Node Network Utilization - HIGH (Prod)                                      CHECKING                            WARN
1523082347824    Kubernetes - Node Cpu Utilization - HIGH (Prod)                                          CHECKING                            WARN
1523082348005    Kubernetes - Node Memory Swap Utilization - HIGH (Prod)                                  SNOOZED                             WARN

There is so much space between the NAME column and STATUS columns. The reason is that the column spacing is calculated using the alerts without considering the effects of other locally executed filters. In this example the --name Kubernetes command line param.

Seeing the full set of alerts, (without the --name Kubernetes option) shows the reason of the separation

hbaba@mbp-005063:~/box/src/skynet/wavectl/doc/bin (master)$ ./wavectl show alert
ID               NAME                                                                                     STATUS                              SEVERITY
1523082347619    Kubernetes - Node Network Utilization - HIGH (Prod)                                      CHECKING                            WARN
1523082347824    Kubernetes - Node Cpu Utilization - HIGH (Prod)                                          CHECKING                            WARN
1523082348005    Kubernetes - Node Memory Swap Utilization - HIGH (Prod)                                  SNOOZED                             WARN
1523082348172    Wavefront Freshness                                                                      CHECKING                            WARN
1523082348348    Legacy admin console 500sTODO_SOME_TEST_12432345_STRINGTODO_SOME_TEST_12432345_STRING    CHECKING                            WARN
1523082348512    MySQL Live - Running Kernel Matches Boot Kernel - FALSE                                  IN_MAINTENANCE CHECKING             WARN
1523082348708    Orion Response time more than 2 seconds                                                  FIRING                              INFO
1523082348877    Realtime - Aggregate FetchMessage Median Latency - HIGH                                  CHECKING                            SEVERE
1523082349048    Updates Page - Total ReverseFetchMessage Median Latency - HIGH                           CHECKING                            SEVERE
1523082349224    CacheManager Exception Rate - STAGING                                                    CHECKING                            SEVERE
1523082349397    Prod - Office Online Unexpected Errors - HIGH                                            CHECKING                            SEVERE

There is an alert that has a really long name and even though that is not in the final displayed list, it caused the columns to be too widely separated.

All alerts matching the --customerTag are received from the Wavefront server, and they are further narrowed down on the wavectl client . The show summary table column separation should use the final set of alerts.

主要言語
Python
スター
16
フォーク
10
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

box/wavectl のほかの issue

box/wavectl の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。