Documentation
¶
Index ¶
- Variables
- type AggregatedResourceUsage
- func (*AggregatedResourceUsage) Descriptor() ([]byte, []int)deprecated
- func (x *AggregatedResourceUsage) GetMaxNumFds() int32
- func (x *AggregatedResourceUsage) GetMaxResidentMemory() int64
- func (x *AggregatedResourceUsage) GetMaxSystemCpuRate() float64
- func (x *AggregatedResourceUsage) GetMaxUserCpuRate() float64
- func (x *AggregatedResourceUsage) GetMeanNumFds() float64
- func (x *AggregatedResourceUsage) GetMeanResidentMemory() float64
- func (x *AggregatedResourceUsage) GetMeanSystemCpuRate() float64
- func (x *AggregatedResourceUsage) GetMeanUserCpuRate() float64
- func (*AggregatedResourceUsage) ProtoMessage()
- func (x *AggregatedResourceUsage) ProtoReflect() protoreflect.Message
- func (x *AggregatedResourceUsage) Reset()
- func (x *AggregatedResourceUsage) String() string
- type KillNotification
- func (*KillNotification) Descriptor() ([]byte, []int)deprecated
- func (x *KillNotification) GetKilledWhen() *timestamppb.Timestamp
- func (x *KillNotification) GetPid() int64
- func (x *KillNotification) GetProcessStartTime() *timestamppb.Timestamp
- func (x *KillNotification) GetReason() KillNotification_Reason
- func (x *KillNotification) GetService() string
- func (x *KillNotification) GetVersion() string
- func (*KillNotification) ProtoMessage()
- func (x *KillNotification) ProtoReflect() protoreflect.Message
- func (x *KillNotification) Reset()
- func (x *KillNotification) String() string
- type KillNotification_Reason
- func (KillNotification_Reason) Descriptor() protoreflect.EnumDescriptor
- func (x KillNotification_Reason) Enum() *KillNotification_Reason
- func (KillNotification_Reason) EnumDescriptor() ([]byte, []int)deprecated
- func (x KillNotification_Reason) Number() protoreflect.EnumNumber
- func (x KillNotification_Reason) String() string
- func (KillNotification_Reason) Type() protoreflect.EnumType
- type ResourceUsageData
- func (*ResourceUsageData) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceUsageData) GetDataTimestamp() *timestamppb.Timestamp
- func (x *ResourceUsageData) GetDebugStatus() string
- func (x *ResourceUsageData) GetPid() int64
- func (x *ResourceUsageData) GetProcessStartTime() *timestamppb.Timestamp
- func (x *ResourceUsageData) GetProcessTerminated() bool
- func (x *ResourceUsageData) GetResourceUsage() *AggregatedResourceUsage
- func (x *ResourceUsageData) GetScope() string
- func (x *ResourceUsageData) GetVersion() string
- func (*ResourceUsageData) ProtoMessage()
- func (x *ResourceUsageData) ProtoReflect() protoreflect.Message
- func (x *ResourceUsageData) Reset()
- func (x *ResourceUsageData) String() string
Constants ¶
This section is empty.
Variables ¶
var ( KillNotification_Reason_name = map[int32]string{ 0: "UNSPECIFIED", 1: "HEARTBEAT_FAILURE", 2: "MEMORY_EXCEEDED", } KillNotification_Reason_value = map[string]int32{ "UNSPECIFIED": 0, "HEARTBEAT_FAILURE": 1, "MEMORY_EXCEEDED": 2, } )
Enum value maps for KillNotification_Reason.
var File_fleetspeak_src_common_proto_fleetspeak_monitoring_resource_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AggregatedResourceUsage ¶
type AggregatedResourceUsage struct { MeanUserCpuRate float64 `protobuf:"fixed64,1,opt,name=mean_user_cpu_rate,json=meanUserCpuRate,proto3" json:"mean_user_cpu_rate,omitempty"` MaxUserCpuRate float64 `protobuf:"fixed64,2,opt,name=max_user_cpu_rate,json=maxUserCpuRate,proto3" json:"max_user_cpu_rate,omitempty"` MeanSystemCpuRate float64 `protobuf:"fixed64,3,opt,name=mean_system_cpu_rate,json=meanSystemCpuRate,proto3" json:"mean_system_cpu_rate,omitempty"` MaxSystemCpuRate float64 `protobuf:"fixed64,4,opt,name=max_system_cpu_rate,json=maxSystemCpuRate,proto3" json:"max_system_cpu_rate,omitempty"` MeanResidentMemory float64 `protobuf:"fixed64,5,opt,name=mean_resident_memory,json=meanResidentMemory,proto3" json:"mean_resident_memory,omitempty"` MaxResidentMemory int64 `protobuf:"varint,6,opt,name=max_resident_memory,json=maxResidentMemory,proto3" json:"max_resident_memory,omitempty"` MaxNumFds int32 `protobuf:"varint,7,opt,name=max_num_fds,json=maxNumFds,proto3" json:"max_num_fds,omitempty"` MeanNumFds float64 `protobuf:"fixed64,8,opt,name=mean_num_fds,json=meanNumFds,proto3" json:"mean_num_fds,omitempty"` // contains filtered or unexported fields }
Contains resource-usage metrics for Fleetspeak clients. The stats are arrived at by aggregating raw data retrieved from the OS. CPU-usage is in milliseconds per second, and memory usage is in bytes.
func (*AggregatedResourceUsage) Descriptor
deprecated
func (*AggregatedResourceUsage) Descriptor() ([]byte, []int)
Deprecated: Use AggregatedResourceUsage.ProtoReflect.Descriptor instead.
func (*AggregatedResourceUsage) GetMaxNumFds ¶
func (x *AggregatedResourceUsage) GetMaxNumFds() int32
func (*AggregatedResourceUsage) GetMaxResidentMemory ¶
func (x *AggregatedResourceUsage) GetMaxResidentMemory() int64
func (*AggregatedResourceUsage) GetMaxSystemCpuRate ¶
func (x *AggregatedResourceUsage) GetMaxSystemCpuRate() float64
func (*AggregatedResourceUsage) GetMaxUserCpuRate ¶
func (x *AggregatedResourceUsage) GetMaxUserCpuRate() float64
func (*AggregatedResourceUsage) GetMeanNumFds ¶
func (x *AggregatedResourceUsage) GetMeanNumFds() float64
func (*AggregatedResourceUsage) GetMeanResidentMemory ¶
func (x *AggregatedResourceUsage) GetMeanResidentMemory() float64
func (*AggregatedResourceUsage) GetMeanSystemCpuRate ¶
func (x *AggregatedResourceUsage) GetMeanSystemCpuRate() float64
func (*AggregatedResourceUsage) GetMeanUserCpuRate ¶
func (x *AggregatedResourceUsage) GetMeanUserCpuRate() float64
func (*AggregatedResourceUsage) ProtoMessage ¶
func (*AggregatedResourceUsage) ProtoMessage()
func (*AggregatedResourceUsage) ProtoReflect ¶
func (x *AggregatedResourceUsage) ProtoReflect() protoreflect.Message
func (*AggregatedResourceUsage) Reset ¶
func (x *AggregatedResourceUsage) Reset()
func (*AggregatedResourceUsage) String ¶
func (x *AggregatedResourceUsage) String() string
type KillNotification ¶
type KillNotification struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` Pid int64 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` // The self-reported version of the service. Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // Time when the process was started by Fleetspeak. ProcessStartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=process_start_time,json=processStartTime,proto3" json:"process_start_time,omitempty"` // Time when the process was killed by Fleetspeak. KilledWhen *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=killed_when,json=killedWhen,proto3" json:"killed_when,omitempty"` Reason KillNotification_Reason `protobuf:"varint,6,opt,name=reason,proto3,enum=fleetspeak.monitoring.KillNotification_Reason" json:"reason,omitempty"` // contains filtered or unexported fields }
Sent by clients when a service gets killed by Fleetspeak, e.g. for using too much memory.
func (*KillNotification) Descriptor
deprecated
func (*KillNotification) Descriptor() ([]byte, []int)
Deprecated: Use KillNotification.ProtoReflect.Descriptor instead.
func (*KillNotification) GetKilledWhen ¶
func (x *KillNotification) GetKilledWhen() *timestamppb.Timestamp
func (*KillNotification) GetPid ¶
func (x *KillNotification) GetPid() int64
func (*KillNotification) GetProcessStartTime ¶
func (x *KillNotification) GetProcessStartTime() *timestamppb.Timestamp
func (*KillNotification) GetReason ¶
func (x *KillNotification) GetReason() KillNotification_Reason
func (*KillNotification) GetService ¶
func (x *KillNotification) GetService() string
func (*KillNotification) GetVersion ¶
func (x *KillNotification) GetVersion() string
func (*KillNotification) ProtoMessage ¶
func (*KillNotification) ProtoMessage()
func (*KillNotification) ProtoReflect ¶
func (x *KillNotification) ProtoReflect() protoreflect.Message
func (*KillNotification) Reset ¶
func (x *KillNotification) Reset()
func (*KillNotification) String ¶
func (x *KillNotification) String() string
type KillNotification_Reason ¶
type KillNotification_Reason int32
const ( KillNotification_UNSPECIFIED KillNotification_Reason = 0 KillNotification_HEARTBEAT_FAILURE KillNotification_Reason = 1 KillNotification_MEMORY_EXCEEDED KillNotification_Reason = 2 )
func (KillNotification_Reason) Descriptor ¶
func (KillNotification_Reason) Descriptor() protoreflect.EnumDescriptor
func (KillNotification_Reason) Enum ¶
func (x KillNotification_Reason) Enum() *KillNotification_Reason
func (KillNotification_Reason) EnumDescriptor
deprecated
func (KillNotification_Reason) EnumDescriptor() ([]byte, []int)
Deprecated: Use KillNotification_Reason.Descriptor instead.
func (KillNotification_Reason) Number ¶
func (x KillNotification_Reason) Number() protoreflect.EnumNumber
func (KillNotification_Reason) String ¶
func (x KillNotification_Reason) String() string
func (KillNotification_Reason) Type ¶
func (KillNotification_Reason) Type() protoreflect.EnumType
type ResourceUsageData ¶
type ResourceUsageData struct { // Name of the client service that resource usage is charged/attributed to // e.g 'system' for the system Fleetspeak service, or the name of a daemon // service as specified in its config. Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` Pid int64 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` // The self reported service/service binary version. Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"` // Time when the process was started by Fleetspeak. ProcessStartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=process_start_time,json=processStartTime,proto3" json:"process_start_time,omitempty"` // Corresponds to when computation of the resource-usage data was finalized. DataTimestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=data_timestamp,json=dataTimestamp,proto3" json:"data_timestamp,omitempty"` ResourceUsage *AggregatedResourceUsage `protobuf:"bytes,5,opt,name=resource_usage,json=resourceUsage,proto3" json:"resource_usage,omitempty"` // Optional debug info for the process. DebugStatus string `protobuf:"bytes,6,opt,name=debug_status,json=debugStatus,proto3" json:"debug_status,omitempty"` // If true, indicates that the process has terminated, and that this is // the final resource-usage report for that process. ProcessTerminated bool `protobuf:"varint,7,opt,name=process_terminated,json=processTerminated,proto3" json:"process_terminated,omitempty"` // contains filtered or unexported fields }
A fleetspeak.Message with message type "ResourceUsage" is sent regularly by the system and daemon services to the server, to report the performance of processes.
Next tag: 9
func (*ResourceUsageData) Descriptor
deprecated
func (*ResourceUsageData) Descriptor() ([]byte, []int)
Deprecated: Use ResourceUsageData.ProtoReflect.Descriptor instead.
func (*ResourceUsageData) GetDataTimestamp ¶
func (x *ResourceUsageData) GetDataTimestamp() *timestamppb.Timestamp
func (*ResourceUsageData) GetDebugStatus ¶
func (x *ResourceUsageData) GetDebugStatus() string
func (*ResourceUsageData) GetPid ¶
func (x *ResourceUsageData) GetPid() int64
func (*ResourceUsageData) GetProcessStartTime ¶
func (x *ResourceUsageData) GetProcessStartTime() *timestamppb.Timestamp
func (*ResourceUsageData) GetProcessTerminated ¶
func (x *ResourceUsageData) GetProcessTerminated() bool
func (*ResourceUsageData) GetResourceUsage ¶
func (x *ResourceUsageData) GetResourceUsage() *AggregatedResourceUsage
func (*ResourceUsageData) GetScope ¶
func (x *ResourceUsageData) GetScope() string
func (*ResourceUsageData) GetVersion ¶
func (x *ResourceUsageData) GetVersion() string
func (*ResourceUsageData) ProtoMessage ¶
func (*ResourceUsageData) ProtoMessage()
func (*ResourceUsageData) ProtoReflect ¶
func (x *ResourceUsageData) ProtoReflect() protoreflect.Message
func (*ResourceUsageData) Reset ¶
func (x *ResourceUsageData) Reset()
func (*ResourceUsageData) String ¶
func (x *ResourceUsageData) String() string