collect

package
v0.0.0-...-168b963 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package collect throughput and response times using Go-Kit Metrics

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Measure

func Measure(h *generic.Histogram, d time.Duration)

Measure adds a measurement to a histogram collection

func NewHist

func NewHist(name string) *generic.Histogram

NewHist creates a new histogram

func Save

func Save()

Save currently does nothing

func SaveAllGuesses

func SaveAllGuesses(name string)

SaveAllGuesses writes guesses to a file

func SaveHist

func SaveHist(h *generic.Histogram, name, suffix string)

SaveHist passes in name because metrics.Histogram blocks expvar.Histogram.Name()

func Serve

func Serve(port int)

Serve on a port

Types

type ArchObject

type ArchObject struct {
	Arch     string `json:"arch"`
	Version  string `json:"version"`
	Args     string `json:"args"`
	Services []struct {
		Name                 string   `json:"name"`
		Package              string   `json:"package"`
		Regions              int      `json:"regions"`
		Count                int      `json:"count"`
		Dependencies         []string `json:"dependencies"`
		UseCustomGuesstimate bool     `json:"useCustomGuesstimate,omitempty"`
		GuesstimateType      string   `json:"guesstimateType,omitempty"`
		GuesstimateValue     string   `json:"guesstimateValue,omitempty"`
	} `json:"services"`
}

Jump to

Keyboard shortcuts

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