Discover Packages
github.com/m-lab/disco
metrics
package
Version:
v0.1.13
Opens a new window with list of versions in this module.
Published: Feb 22, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Metrics struct {
CollectStart time .Time
}
Metrics represents a collection of oids, plus additional data about the environment.
New creates a new metrics.Metrics struct with various OID maps initialized.
Collect scrapes values for a list of OIDs and updates a map of OIDs,
appending a new archive.Sample representing the increase from the previous
scrape to an slice of samples for that OID.
Write collects JSON data for all OIDs and then writes the result to an archive.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.