Skip to content

Stats API

Method NameRequest TypeResponse TypeDescription
GetStatsStatsRequestStatsResponseGet process statistics

Load stats over different time frames

FieldTypeLabelDescription
Load1Minfloat
Load5Minfloat
Load15Minfloat

Memory stats info

FieldTypeLabelDescription
Totaluint64
Freeuint64
Availableuint64
Cacheduint64

Statistics for a singular process

FieldTypeLabelDescription
Namestring
Userfloat
Sysfloat
ResSetSizeuint64

Cummulative process stats

FieldTypeLabelDescription
CpuProcessesProcessStatrepeated
MemProcessesProcessStatrepeated
Totaluint64
Runninguint64
UserCyclesuint64
SysCyclesuint64
TotalCyclesuint64

Empty stats request message

Combined stats response message

FieldTypeLabelDescription
MemoryMemoryStats
LoadLoadStats
ProcessProcessStats
.proto TypeNotesGo Type
doublefloat64
floatfloat32
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64
uint32Uses variable-length encoding.uint32
uint64Uses variable-length encoding.uint64
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64
sfixed32Always four bytes.int32
sfixed64Always eight bytes.int64
boolbool
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.string
bytesMay contain any arbitrary sequence of bytes.[]byte