npd

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchNPDMetric added in v0.8.1

func FetchNPDMetric(ins gce.Instance, metricName string, labels map[string]string) (float64, error)

FetchNPDMetric fetches and parses a specific metric reported by NPD on the provided GCE instance.

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, artifactDirectory string, testID int) []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