cockroachdb / cockroach

CockroachDB - the open source, cloud-native distributed SQL database.
https://www.cockroachlabs.com
Other
29.53k stars 3.7k forks source link

dbconsole: drain should show up in event log #102215

Open nicktrav opened 1 year ago

nicktrav commented 1 year ago

Is your feature request related to a problem? Please describe.

The DB Console has an event log section on the overview. When a node is drained by an operator / automation (e.g. cockroach node drain) it would be informative to display this in the event log.

Describe the solution you'd like

Surface drain events in the event log.

Describe alternatives you've considered

One alternative is to spelunk through logs looking for evidence of a drain. This is far from ideal, especially if one does not have access to the logs directly.

Jira issue: CRDB-27346

nicktrav commented 1 year ago

Another suggestion from the suggestion box (h/t @dt):

Add a --drain-reason flag and surface the string passed to it in the event log entry.