Documentation ¶
Index ¶
Constants ¶
View Source
const ( SNMounttable = "mounttable" SNIdentity = "identity service" SNMacaroon = "macaroon service" SNBinaryDischarger = "binary discharger" SNRole = "role service" SNProxy = "proxy service" SNBenchmark = "benchmark service" SNAllocator = "syncbase allocator" )
Human-readable service names.
View Source
const ( MNMounttableMountedServers = "mounttable mounted servers" MNMounttableNodes = "mounttable nodes" )
Human-readable metric names.
Variables ¶
This section is empty.
Functions ¶
func GetServiceMountedName ¶
GetServiceMountedName gets the full mounted name for the given service.
Types ¶
type ServiceLocation ¶
func GetServiceLocation ¶
func GetServiceLocation(v23ctx *context.T, ctx *tool.Context, me naming.MountEntry) (*ServiceLocation, error)
GetServiceLocation returns the given service's location (instance and zone). If the service is replicated, the instance name is the pod name.
To make it simpler and faster, we look up service's location in hard-coded "zone maps" for both non-replicated and replicated services.
type StatValue ¶
type StatValue struct { Name string Value interface{} }
StatValue stores the name and the value returned from the GetStat function.
func GetStat ¶
func GetStat(v23ctx *context.T, ctx *tool.Context, me naming.MountEntry, pattern string) ([]*StatValue, error)
GetStat gets the given stat using rpc.
func (*StatValue) GetFloat64Value ¶
func (*StatValue) GetStringValue ¶
Click to show internal directories.
Click to hide internal directories.