Documentation ¶
Index ¶
- func FetchNPDMetric(ins gce.Instance, metricName string, labels map[string]string) (float64, error)
- func FetchNPDMetrics(ins gce.Instance) ([]metrics.Float64MetricRepresentation, error)
- func SaveTestArtifacts(ins gce.Instance, artifactDirectory string, testID int) []error
- func SetupNPD(ins gce.Instance, npdBuildTar string) error
- func WaitForNPD(ins gce.Instance, metricNames []string, timeoutSeconds uint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchNPDMetric ¶ added in v0.8.1
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 ¶
SaveTestArtifacts saves debugging data from NPD.
func SetupNPD ¶
SetupNPD installs NPD from the test tarball onto the provided GCE instance.
Here is how it works:
- SetupNPD will SCP the NPD build tarball onto the VM.
- SetupNPD will extract the tarball in the VM, to expose the test/e2e-install.sh on the VM.
- SetupNPD will then call the e2e-install.sh script, and feed the NPD build tarball as input.
- 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).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.