testutil

package
v8.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSampleCount

func GetSampleCount(name string, labels map[string]string, mfs []*promclient.MetricFamily) uint64

GetSampleCount returns the sample count of the given metric name and labels.

func SampleDelta

func SampleDelta(name string, labels map[string]string, before, after []*promclient.MetricFamily) uint64

SampleDelta returns the delta of before and after metric sample count for the given name and labels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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