Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Summary table column spacing is not optimal

Aperta
#17 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Inizia dal comando wavectl show alert e confronta il suo output con e senza --name Kubernetes. Traccia dove i risultati del server vengono ristretti sul client e dove viene calcolata la spaziatura della tabella riepilogativa. Il lavoro è completato quando le colonne visualizzate usano l’insieme finale di alert filtrati invece degli alert esclusi, mantenendo l’output della tabella visualizzato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
16
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di box/wavectl

Tutte le issue di box/wavectl

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.