Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

[6.1.x] Gravity report improvements #1800

Merged
merged 6 commits into from Jun 28, 2020

Conversation

bernardjkim
Copy link
Contributor

@bernardjkim bernardjkim commented Jun 25, 2020

Description

This PR adds a time filter to gravity report and adds a few more system collectors.

  • Reboots history: last -x
  • Kernel information: uname -a
  • Serf cluster: serf members
  • Swap status: swapon -s (we have vmstat but wouldn't hurt)
  • Etcd metrics: curl -s --tlsv1.2 --cacert /var/state/root.cert --cert /var/state/etcd.cert --key /var/state/etcd.key https://localhost:2379/metrics

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change has a user-facing impact

Linked tickets and other PRs

TODOs

  • Self-review the change
  • Perform manual testing
  • Address review feedback

Testing done

Verified additional collectors

Verified k8s logs are filtered by time

Verified journal logs are filtered by time

@bernardjkim bernardjkim requested review from a team, r0mant and a-palchikov June 25, 2020 22:33
@bernardjkim bernardjkim force-pushed the bernard/6.1.x/report-improvements branch 2 times, most recently from 93a29fe to 474edf6 Compare June 26, 2020 03:07
rc, err := i.config.Operator.GetSiteReport(ctx, clusterKey)
rc, err := i.config.Operator.GetSiteReport(ctx, ops.GetClusterReportRequest{
SiteKey: clusterKey,
Since: time.Duration(0),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: zero value will be the same if unspecified

return nil
}

// collectEtcdInfo collects etcd metrics.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

collects etcd metrics and captures a snapshot of the data

@bernardjkim bernardjkim force-pushed the bernard/6.1.x/report-improvements branch from 48a8b9c to d6e3fc3 Compare June 26, 2020 17:32
@bernardjkim bernardjkim force-pushed the bernard/6.1.x/report-improvements branch from d6e3fc3 to 06ff9fd Compare June 27, 2020 05:25
@bernardjkim bernardjkim merged commit b51ad66 into version/6.1.x Jun 28, 2020
@bernardjkim bernardjkim deleted the bernard/6.1.x/report-improvements branch June 28, 2020 23:08
@bernardjkim bernardjkim restored the bernard/6.1.x/report-improvements branch June 29, 2020 23:55
@bernardjkim bernardjkim deleted the bernard/6.1.x/report-improvements branch June 29, 2020 23:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants