npd

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchNPDMetrics

func FetchNPDMetrics(ins gce.Instance) ([]metrics.Float64MetricRepresentation, error)

FetchNPDMetrics fetches and parses metrics reported by NPD on the provided GCE instance.

func SaveTestArtifacts

func SaveTestArtifacts(ins gce.Instance, directory string) []error

SaveTestArtifacts saves debugging data from NPD.

func SetupNPD

func SetupNPD(ins gce.Instance, npdBuildTar string) error

SetupNPD installs NPD from the test tarball onto the provided GCE instance.

Here is how it works:

  1. SetupNPD will SCP the NPD build tarball onto the VM.
  2. SetupNPD will extract the tarball in the VM, to expose the test/e2e-install.sh on the VM.
  3. SetupNPD will then call the e2e-install.sh script, and feed the NPD build tarball as input.
  4. Finally, the e2e-install.sh script will do the heavy lifting of installing NPD (setting up binary/config directories, setting up systemd config file, etc).

func WaitForNPD

func WaitForNPD(ins gce.Instance, metricNames []string, timeoutSeconds uint) error

WaitForNPD waits for NPD to become ready by waiting for expected metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL