You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2023/03/01 14:31:38 UTC
[skywalking-goapi] branch main updated: Sync data collect and query protocol for continous profiling (#52)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-goapi.git
The following commit(s) were added to refs/heads/main by this push:
new aa3f846 Sync data collect and query protocol for continous profiling (#52)
aa3f846 is described below
commit aa3f8469385bd5edf4a09b15c3ac7100f6c52fcb
Author: mrproliu <74...@qq.com>
AuthorDate: Wed Mar 1 22:31:32 2023 +0800
Sync data collect and query protocol for continous profiling (#52)
---
collect/ebpf/profiling/v3/Continuous.pb.go | 182 ++++++++++++++--------------
dependencies.sh | 4 +-
go.mod | 3 +-
go.sum | 12 +-
query/schema.go | 183 ++++++++++++++++++++++++++---
5 files changed, 270 insertions(+), 114 deletions(-)
diff --git a/collect/ebpf/profiling/v3/Continuous.pb.go b/collect/ebpf/profiling/v3/Continuous.pb.go
index 61ff094..a21f514 100644
--- a/collect/ebpf/profiling/v3/Continuous.pb.go
+++ b/collect/ebpf/profiling/v3/Continuous.pb.go
@@ -38,34 +38,34 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-type ContinuousProfilingCauseType int32
+type ContinuousProfilingTriggeredMonitorType int32
const (
// Current process CPU usage percent(0-100).
- ContinuousProfilingCauseType_ProcessCPU ContinuousProfilingCauseType = 0
+ ContinuousProfilingTriggeredMonitorType_ProcessCPU ContinuousProfilingTriggeredMonitorType = 0
// The number of threads in the process.
- ContinuousProfilingCauseType_ProcessThreadCount ContinuousProfilingCauseType = 1
+ ContinuousProfilingTriggeredMonitorType_ProcessThreadCount ContinuousProfilingTriggeredMonitorType = 1
// System load value.
- ContinuousProfilingCauseType_SystemLoad ContinuousProfilingCauseType = 2
+ ContinuousProfilingTriggeredMonitorType_SystemLoad ContinuousProfilingTriggeredMonitorType = 2
// Process response error rate(0-100).
// HTTP response codes in [500-600) are considered errors.
// Formula: ErrorCount / TotalCount * 100
- ContinuousProfilingCauseType_HTTPErrorRate ContinuousProfilingCauseType = 3
+ ContinuousProfilingTriggeredMonitorType_HTTPErrorRate ContinuousProfilingTriggeredMonitorType = 3
// Process response average time(ms).
// Formula: TotalResponseTime(ms) / TotalCount
- ContinuousProfilingCauseType_HTTPAvgResponseTime ContinuousProfilingCauseType = 4
+ ContinuousProfilingTriggeredMonitorType_HTTPAvgResponseTime ContinuousProfilingTriggeredMonitorType = 4
)
-// Enum value maps for ContinuousProfilingCauseType.
+// Enum value maps for ContinuousProfilingTriggeredMonitorType.
var (
- ContinuousProfilingCauseType_name = map[int32]string{
+ ContinuousProfilingTriggeredMonitorType_name = map[int32]string{
0: "ProcessCPU",
1: "ProcessThreadCount",
2: "SystemLoad",
3: "HTTPErrorRate",
4: "HTTPAvgResponseTime",
}
- ContinuousProfilingCauseType_value = map[string]int32{
+ ContinuousProfilingTriggeredMonitorType_value = map[string]int32{
"ProcessCPU": 0,
"ProcessThreadCount": 1,
"SystemLoad": 2,
@@ -74,30 +74,30 @@ var (
}
)
-func (x ContinuousProfilingCauseType) Enum() *ContinuousProfilingCauseType {
- p := new(ContinuousProfilingCauseType)
+func (x ContinuousProfilingTriggeredMonitorType) Enum() *ContinuousProfilingTriggeredMonitorType {
+ p := new(ContinuousProfilingTriggeredMonitorType)
*p = x
return p
}
-func (x ContinuousProfilingCauseType) String() string {
+func (x ContinuousProfilingTriggeredMonitorType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
-func (ContinuousProfilingCauseType) Descriptor() protoreflect.EnumDescriptor {
+func (ContinuousProfilingTriggeredMonitorType) Descriptor() protoreflect.EnumDescriptor {
return file_ebpf_profiling_Continuous_proto_enumTypes[0].Descriptor()
}
-func (ContinuousProfilingCauseType) Type() protoreflect.EnumType {
+func (ContinuousProfilingTriggeredMonitorType) Type() protoreflect.EnumType {
return &file_ebpf_profiling_Continuous_proto_enumTypes[0]
}
-func (x ContinuousProfilingCauseType) Number() protoreflect.EnumNumber {
+func (x ContinuousProfilingTriggeredMonitorType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
-// Deprecated: Use ContinuousProfilingCauseType.Descriptor instead.
-func (ContinuousProfilingCauseType) EnumDescriptor() ([]byte, []int) {
+// Deprecated: Use ContinuousProfilingTriggeredMonitorType.Descriptor instead.
+func (ContinuousProfilingTriggeredMonitorType) EnumDescriptor() ([]byte, []int) {
return file_ebpf_profiling_Continuous_proto_rawDescGZIP(), []int{0}
}
@@ -360,7 +360,7 @@ type ContinuousProfilingCause struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
- Type ContinuousProfilingCauseType `protobuf:"varint,1,opt,name=type,proto3,enum=skywalking.v3.ContinuousProfilingCauseType" json:"type,omitempty"`
+ Type ContinuousProfilingTriggeredMonitorType `protobuf:"varint,1,opt,name=type,proto3,enum=skywalking.v3.ContinuousProfilingTriggeredMonitorType" json:"type,omitempty"`
// Types that are assignable to Cause:
// *ContinuousProfilingCause_SingleValue
// *ContinuousProfilingCause_Uri
@@ -399,11 +399,11 @@ func (*ContinuousProfilingCause) Descriptor() ([]byte, []int) {
return file_ebpf_profiling_Continuous_proto_rawDescGZIP(), []int{3}
}
-func (x *ContinuousProfilingCause) GetType() ContinuousProfilingCauseType {
+func (x *ContinuousProfilingCause) GetType() ContinuousProfilingTriggeredMonitorType {
if x != nil {
return x.Type
}
- return ContinuousProfilingCauseType_ProcessCPU
+ return ContinuousProfilingTriggeredMonitorType_ProcessCPU
}
func (m *ContinuousProfilingCause) GetCause() isContinuousProfilingCause_Cause {
@@ -770,76 +770,78 @@ var file_ebpf_profiling_Continuous_proto_rawDesc = []byte{
0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x4e, 0x65, 0x74, 0x77, 0x6f,
0x72, 0x6b, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x48,
0x00, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x42, 0x0c, 0x0a, 0x0a, 0x74, 0x61,
- 0x72, 0x67, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x22, 0xfc, 0x01, 0x0a, 0x18, 0x43, 0x6f, 0x6e,
+ 0x72, 0x67, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x22, 0x87, 0x02, 0x0a, 0x18, 0x43, 0x6f, 0x6e,
0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67,
- 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67,
+ 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67,
0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x50, 0x72,
- 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x75, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65,
- 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x56, 0x0a, 0x0b, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65,
- 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x6b,
- 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6e, 0x74,
- 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53,
- 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x61, 0x75, 0x73, 0x65, 0x48,
- 0x00, 0x52, 0x0b, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e,
- 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x73, 0x6b,
- 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6e, 0x74,
- 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x55,
- 0x52, 0x49, 0x43, 0x61, 0x75, 0x73, 0x65, 0x48, 0x00, 0x52, 0x03, 0x75, 0x72, 0x69, 0x42, 0x07,
- 0x0a, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x22, 0x5d, 0x0a, 0x23, 0x43, 0x6f, 0x6e, 0x74, 0x69,
- 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x69,
- 0x6e, 0x67, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x1c,
- 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x01, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x18, 0x0a, 0x07,
- 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x63,
- 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x8a, 0x01, 0x0a, 0x1b, 0x43, 0x6f, 0x6e, 0x74, 0x69,
- 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x52,
- 0x49, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x05, 0x72, 0x65, 0x67, 0x65, 0x78, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x72, 0x65, 0x67, 0x65, 0x78, 0x12, 0x14,
- 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04,
- 0x70, 0x61, 0x74, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c,
- 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f,
- 0x6c, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20,
- 0x01, 0x28, 0x01, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x05, 0x0a, 0x03,
- 0x75, 0x72, 0x69, 0x22, 0x1e, 0x0a, 0x1c, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75,
- 0x73, 0x4f, 0x6e, 0x43, 0x50, 0x55, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x54,
- 0x61, 0x73, 0x6b, 0x22, 0x1f, 0x0a, 0x1d, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75,
- 0x73, 0x4f, 0x66, 0x66, 0x43, 0x50, 0x55, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67,
- 0x54, 0x61, 0x73, 0x6b, 0x22, 0x50, 0x0a, 0x1e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f,
- 0x75, 0x73, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69,
- 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x2e, 0x0a, 0x12, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69,
- 0x6e, 0x67, 0x55, 0x52, 0x49, 0x52, 0x65, 0x67, 0x65, 0x78, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
- 0x28, 0x09, 0x52, 0x12, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x52, 0x49, 0x52,
- 0x65, 0x67, 0x65, 0x78, 0x65, 0x73, 0x2a, 0x82, 0x01, 0x0a, 0x1c, 0x43, 0x6f, 0x6e, 0x74, 0x69,
- 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x61,
- 0x75, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x63, 0x65,
- 0x73, 0x73, 0x43, 0x50, 0x55, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x63, 0x65,
- 0x73, 0x73, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x10, 0x01, 0x12,
- 0x0e, 0x0a, 0x0a, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4c, 0x6f, 0x61, 0x64, 0x10, 0x02, 0x12,
- 0x11, 0x0a, 0x0d, 0x48, 0x54, 0x54, 0x50, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x61, 0x74, 0x65,
- 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x48, 0x54, 0x54, 0x50, 0x41, 0x76, 0x67, 0x52, 0x65, 0x73,
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x10, 0x04, 0x32, 0xd3, 0x01, 0x0a, 0x1a,
- 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c,
- 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x59, 0x0a, 0x0d, 0x71, 0x75,
- 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x73, 0x6b,
- 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6e, 0x74,
- 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x50,
- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x17, 0x2e, 0x73, 0x6b, 0x79,
- 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
- 0x6e, 0x64, 0x73, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x13, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x50,
- 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x28, 0x2e, 0x73,
- 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6e,
- 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67,
- 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x17, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b,
- 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x22,
- 0x00, 0x42, 0x73, 0x0a, 0x33, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e,
- 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x70, 0x6d, 0x2e, 0x6e,
- 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x62, 0x70, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x66,
- 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x50, 0x01, 0x5a, 0x3a, 0x73, 0x6b, 0x79, 0x77,
- 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x6f, 0x72,
- 0x67, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x2f, 0x67, 0x6f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6c,
- 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x65, 0x62, 0x70, 0x66, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c,
- 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x65, 0x64,
+ 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,
+ 0x65, 0x12, 0x56, 0x0a, 0x0b, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b,
+ 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75,
+ 0x73, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65,
+ 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x61, 0x75, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x69,
+ 0x6e, 0x67, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x03, 0x75, 0x72, 0x69,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b,
+ 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75,
+ 0x73, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x52, 0x49, 0x43, 0x61, 0x75,
+ 0x73, 0x65, 0x48, 0x00, 0x52, 0x03, 0x75, 0x72, 0x69, 0x42, 0x07, 0x0a, 0x05, 0x63, 0x61, 0x75,
+ 0x73, 0x65, 0x22, 0x5d, 0x0a, 0x23, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73,
+ 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x56,
+ 0x61, 0x6c, 0x75, 0x65, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x72,
+ 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x74, 0x68,
+ 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65,
+ 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
+ 0x74, 0x22, 0x8a, 0x01, 0x0a, 0x1b, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73,
+ 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x52, 0x49, 0x43, 0x61, 0x75, 0x73,
+ 0x65, 0x12, 0x16, 0x0a, 0x05, 0x72, 0x65, 0x67, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x48, 0x00, 0x52, 0x05, 0x72, 0x65, 0x67, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x04, 0x70, 0x61, 0x74,
+ 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12,
+ 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x01, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x18, 0x0a,
+ 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07,
+ 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x05, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x22, 0x1e,
+ 0x0a, 0x1c, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x4f, 0x6e, 0x43, 0x50,
+ 0x55, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x22, 0x1f,
+ 0x0a, 0x1d, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x4f, 0x66, 0x66, 0x43,
+ 0x50, 0x55, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x22,
+ 0x50, 0x0a, 0x1e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x4e, 0x65, 0x74,
+ 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73,
+ 0x6b, 0x12, 0x2e, 0x0a, 0x12, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x52, 0x49,
+ 0x52, 0x65, 0x67, 0x65, 0x78, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x73,
+ 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x52, 0x49, 0x52, 0x65, 0x67, 0x65, 0x78, 0x65,
+ 0x73, 0x2a, 0x8d, 0x01, 0x0a, 0x27, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73,
+ 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72,
+ 0x65, 0x64, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a,
+ 0x0a, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x43, 0x50, 0x55, 0x10, 0x00, 0x12, 0x16, 0x0a,
+ 0x12, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
+ 0x75, 0x6e, 0x74, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4c,
+ 0x6f, 0x61, 0x64, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x48, 0x54, 0x54, 0x50, 0x45, 0x72, 0x72,
+ 0x6f, 0x72, 0x52, 0x61, 0x74, 0x65, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x48, 0x54, 0x54, 0x50,
+ 0x41, 0x76, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x10,
+ 0x04, 0x32, 0xd3, 0x01, 0x0a, 0x1a, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73,
+ 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x12, 0x59, 0x0a, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
+ 0x73, 0x12, 0x2d, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76,
+ 0x33, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x66,
+ 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x1a, 0x17, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33,
+ 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x13, 0x72,
+ 0x65, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x61,
+ 0x73, 0x6b, 0x12, 0x28, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e,
+ 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x50, 0x72, 0x6f,
+ 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x17, 0x2e, 0x73,
+ 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6d,
+ 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x22, 0x00, 0x42, 0x73, 0x0a, 0x33, 0x6f, 0x72, 0x67, 0x2e, 0x61,
+ 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67,
+ 0x2e, 0x61, 0x70, 0x6d, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x62, 0x70,
+ 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x50, 0x01,
+ 0x5a, 0x3a, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x70, 0x61,
+ 0x63, 0x68, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x2f, 0x67, 0x6f, 0x61,
+ 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x65, 0x62, 0x70, 0x66, 0x2f,
+ 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -857,7 +859,7 @@ func file_ebpf_profiling_Continuous_proto_rawDescGZIP() []byte {
var file_ebpf_profiling_Continuous_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_ebpf_profiling_Continuous_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_ebpf_profiling_Continuous_proto_goTypes = []interface{}{
- (ContinuousProfilingCauseType)(0), // 0: skywalking.v3.ContinuousProfilingCauseType
+ (ContinuousProfilingTriggeredMonitorType)(0), // 0: skywalking.v3.ContinuousProfilingTriggeredMonitorType
(*ContinuousProfilingPolicyQuery)(nil), // 1: skywalking.v3.ContinuousProfilingPolicyQuery
(*ContinuousProfilingServicePolicyQuery)(nil), // 2: skywalking.v3.ContinuousProfilingServicePolicyQuery
(*ContinuousProfilingReport)(nil), // 3: skywalking.v3.ContinuousProfilingReport
@@ -875,7 +877,7 @@ var file_ebpf_profiling_Continuous_proto_depIdxs = []int32{
7, // 2: skywalking.v3.ContinuousProfilingReport.onCPU:type_name -> skywalking.v3.ContinuousOnCPUProfilingTask
8, // 3: skywalking.v3.ContinuousProfilingReport.offCPU:type_name -> skywalking.v3.ContinuousOffCPUProfilingTask
9, // 4: skywalking.v3.ContinuousProfilingReport.network:type_name -> skywalking.v3.ContinuousNetworkProfilingTask
- 0, // 5: skywalking.v3.ContinuousProfilingCause.type:type_name -> skywalking.v3.ContinuousProfilingCauseType
+ 0, // 5: skywalking.v3.ContinuousProfilingCause.type:type_name -> skywalking.v3.ContinuousProfilingTriggeredMonitorType
5, // 6: skywalking.v3.ContinuousProfilingCause.singleValue:type_name -> skywalking.v3.ContinuousProfilingSingleValueCause
6, // 7: skywalking.v3.ContinuousProfilingCause.uri:type_name -> skywalking.v3.ContinuousProfilingURICause
1, // 8: skywalking.v3.ContinuousProfilingService.queryPolicies:input_type -> skywalking.v3.ContinuousProfilingPolicyQuery
diff --git a/dependencies.sh b/dependencies.sh
index 9cf7835..81da54a 100644
--- a/dependencies.sh
+++ b/dependencies.sh
@@ -17,8 +17,8 @@
# specific language governing permissions and limitations
# under the License.
-export COLLECT_PROTOCOL_SHA=9c7a0bf8e0c2195280adf65f50cbd3161dd588ff
-export QUERY_PROTOCOL_SHA=34937ef582edd38319f57ff2bda09688b1af708e
+export COLLECT_PROTOCOL_SHA=0da9c8b3e111fb51c9f8854cae16d4519462ecfe
+export QUERY_PROTOCOL_SHA=4749946962b9c685111876d1abe8c745d3cf3253
export ENVOY_SERVICE_PROTOCOL_SHA=533b32f1b390a3a88ec2008d0561e07c926d879a
export XDS_SERVICE_PROTOCOL_SHA=25de7278fc844d392d607214f36dbedf50f167ee
export PROTOC_VALIDATE_SHA=v0.6.1
diff --git a/go.mod b/go.mod
index 90c63b0..3e149cc 100644
--- a/go.mod
+++ b/go.mod
@@ -4,8 +4,7 @@ go 1.16
require (
github.com/google/go-cmp v0.5.6 // indirect
- golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab // indirect
- golang.org/x/text v0.3.8 // indirect
+ golang.org/x/net v0.6.0 // indirect
google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84 // indirect
google.golang.org/grpc v1.40.0
google.golang.org/protobuf v1.28.1
diff --git a/go.sum b/go.sum
index de4de3d..b31cbee 100644
--- a/go.sum
+++ b/go.sum
@@ -75,8 +75,9 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
-golang.org/x/net v0.0.0-20220722155237-a158d28d115b h1:PxfKdU9lEEDYjdIzOtC4qFWgkU2rGHdKlKowJSMN9h0=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
+golang.org/x/net v0.6.0 h1:L4ZwwTvKW9gr0ZMS1yrHD9GZhIuVjOBBnaKH+SPQK0Q=
+golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -95,16 +96,17 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab h1:2QkjZIsXupsJbJIdSjjUOgWK3aEtzyuh2mPt3l/CkeU=
-golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
+golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
+golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
-golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY=
-golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
+golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo=
+golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
diff --git a/query/schema.go b/query/schema.go
index 26c06a1..0dd2cbe 100644
--- a/query/schema.go
+++ b/query/schema.go
@@ -91,6 +91,62 @@ type Call struct {
DetectPoints []DetectPoint `json:"detectPoints"`
}
+type ContinuousProfilingPolicyCreation struct {
+ ServiceID string `json:"serviceId"`
+ Targets []*ContinuousProfilingPolicyTargetCreation `json:"targets"`
+}
+
+type ContinuousProfilingPolicyItem struct {
+ Type ContinuousProfilingMonitorType `json:"type"`
+ Threshold string `json:"threshold"`
+ Period int `json:"period"`
+ Count int `json:"count"`
+ URIList []string `json:"uriList"`
+ URIRegex *string `json:"uriRegex,omitempty"`
+}
+
+type ContinuousProfilingPolicyItemCreation struct {
+ Type ContinuousProfilingMonitorType `json:"type"`
+ Threshold string `json:"threshold"`
+ Period int `json:"period"`
+ Count int `json:"count"`
+ URIList []string `json:"uriList"`
+ URIRegex *string `json:"uriRegex,omitempty"`
+}
+
+type ContinuousProfilingPolicyTarget struct {
+ Type ContinuousProfilingTargetType `json:"type"`
+ CheckItems []*ContinuousProfilingPolicyItem `json:"checkItems"`
+}
+
+type ContinuousProfilingPolicyTargetCreation struct {
+ TargetType ContinuousProfilingTargetType `json:"targetType"`
+ CheckItems []*ContinuousProfilingPolicyItemCreation `json:"checkItems"`
+}
+
+type ContinuousProfilingSetResult struct {
+ Status bool `json:"status"`
+ ErrorReason *string `json:"errorReason,omitempty"`
+}
+
+type ContinuousProfilingSingleValueCause struct {
+ Threshold int64 `json:"threshold"`
+ Current int64 `json:"current"`
+}
+
+type ContinuousProfilingTriggeredCause struct {
+ Type ContinuousProfilingMonitorType `json:"type"`
+ SingleValue *ContinuousProfilingSingleValueCause `json:"singleValue,omitempty"`
+ URI *ContinuousProfilingURICause `json:"uri,omitempty"`
+}
+
+type ContinuousProfilingURICause struct {
+ URIRegex *string `json:"uriRegex,omitempty"`
+ URIPath *string `json:"uriPath,omitempty"`
+ Threshold int64 `json:"threshold"`
+ Current int64 `json:"current"`
+}
+
type DashboardConfiguration struct {
ID string `json:"id"`
Configuration string `json:"configuration"`
@@ -165,17 +221,20 @@ type EBPFProfilingStackElement struct {
}
type EBPFProfilingTask struct {
- TaskID string `json:"taskId"`
- ServiceID string `json:"serviceId"`
- ServiceName string `json:"serviceName"`
- ServiceInstanceID *string `json:"serviceInstanceId,omitempty"`
- ServiceInstanceName *string `json:"serviceInstanceName,omitempty"`
- ProcessLabels []string `json:"processLabels"`
- TaskStartTime int64 `json:"taskStartTime"`
- TriggerType EBPFProfilingTriggerType `json:"triggerType"`
- FixedTriggerDuration *int64 `json:"fixedTriggerDuration,omitempty"`
- TargetType EBPFProfilingTargetType `json:"targetType"`
- CreateTime int64 `json:"createTime"`
+ TaskID string `json:"taskId"`
+ ServiceID string `json:"serviceId"`
+ ServiceName string `json:"serviceName"`
+ ServiceInstanceID *string `json:"serviceInstanceId,omitempty"`
+ ServiceInstanceName *string `json:"serviceInstanceName,omitempty"`
+ ProcessLabels []string `json:"processLabels"`
+ ProcessID *string `json:"processId,omitempty"`
+ ProcessName *string `json:"processName,omitempty"`
+ TaskStartTime int64 `json:"taskStartTime"`
+ TriggerType EBPFProfilingTriggerType `json:"triggerType"`
+ FixedTriggerDuration *int64 `json:"fixedTriggerDuration,omitempty"`
+ ContinuousProfilingCauses []*ContinuousProfilingTriggeredCause `json:"continuousProfilingCauses"`
+ TargetType EBPFProfilingTargetType `json:"targetType"`
+ CreateTime int64 `json:"createTime"`
}
type EBPFProfilingTaskCreationResult struct {
@@ -228,7 +287,7 @@ type EndpointTopology struct {
}
type Entity struct {
- Scope Scope `json:"scope"`
+ Scope *Scope `json:"scope,omitempty"`
ServiceName *string `json:"serviceName,omitempty"`
Normal *bool `json:"normal,omitempty"`
ServiceInstanceName *string `json:"serviceInstanceName,omitempty"`
@@ -754,6 +813,96 @@ func (e ContentType) MarshalGQL(w io.Writer) {
fmt.Fprint(w, strconv.Quote(e.String()))
}
+type ContinuousProfilingMonitorType string
+
+const (
+ ContinuousProfilingMonitorTypeProcessCPU ContinuousProfilingMonitorType = "PROCESS_CPU"
+ ContinuousProfilingMonitorTypeProcessThreadCount ContinuousProfilingMonitorType = "PROCESS_THREAD_COUNT"
+ ContinuousProfilingMonitorTypeSystemLoad ContinuousProfilingMonitorType = "SYSTEM_LOAD"
+ ContinuousProfilingMonitorTypeHTTPErrorRate ContinuousProfilingMonitorType = "HTTP_ERROR_RATE"
+ ContinuousProfilingMonitorTypeHTTPAvgResponseTime ContinuousProfilingMonitorType = "HTTP_AVG_RESPONSE_TIME"
+)
+
+var AllContinuousProfilingMonitorType = []ContinuousProfilingMonitorType{
+ ContinuousProfilingMonitorTypeProcessCPU,
+ ContinuousProfilingMonitorTypeProcessThreadCount,
+ ContinuousProfilingMonitorTypeSystemLoad,
+ ContinuousProfilingMonitorTypeHTTPErrorRate,
+ ContinuousProfilingMonitorTypeHTTPAvgResponseTime,
+}
+
+func (e ContinuousProfilingMonitorType) IsValid() bool {
+ switch e {
+ case ContinuousProfilingMonitorTypeProcessCPU, ContinuousProfilingMonitorTypeProcessThreadCount, ContinuousProfilingMonitorTypeSystemLoad, ContinuousProfilingMonitorTypeHTTPErrorRate, ContinuousProfilingMonitorTypeHTTPAvgResponseTime:
+ return true
+ }
+ return false
+}
+
+func (e ContinuousProfilingMonitorType) String() string {
+ return string(e)
+}
+
+func (e *ContinuousProfilingMonitorType) UnmarshalGQL(v interface{}) error {
+ str, ok := v.(string)
+ if !ok {
+ return fmt.Errorf("enums must be strings")
+ }
+
+ *e = ContinuousProfilingMonitorType(str)
+ if !e.IsValid() {
+ return fmt.Errorf("%s is not a valid ContinuousProfilingMonitorType", str)
+ }
+ return nil
+}
+
+func (e ContinuousProfilingMonitorType) MarshalGQL(w io.Writer) {
+ fmt.Fprint(w, strconv.Quote(e.String()))
+}
+
+type ContinuousProfilingTargetType string
+
+const (
+ ContinuousProfilingTargetTypeOnCPU ContinuousProfilingTargetType = "ON_CPU"
+ ContinuousProfilingTargetTypeOffCPU ContinuousProfilingTargetType = "OFF_CPU"
+ ContinuousProfilingTargetTypeNetwork ContinuousProfilingTargetType = "NETWORK"
+)
+
+var AllContinuousProfilingTargetType = []ContinuousProfilingTargetType{
+ ContinuousProfilingTargetTypeOnCPU,
+ ContinuousProfilingTargetTypeOffCPU,
+ ContinuousProfilingTargetTypeNetwork,
+}
+
+func (e ContinuousProfilingTargetType) IsValid() bool {
+ switch e {
+ case ContinuousProfilingTargetTypeOnCPU, ContinuousProfilingTargetTypeOffCPU, ContinuousProfilingTargetTypeNetwork:
+ return true
+ }
+ return false
+}
+
+func (e ContinuousProfilingTargetType) String() string {
+ return string(e)
+}
+
+func (e *ContinuousProfilingTargetType) UnmarshalGQL(v interface{}) error {
+ str, ok := v.(string)
+ if !ok {
+ return fmt.Errorf("enums must be strings")
+ }
+
+ *e = ContinuousProfilingTargetType(str)
+ if !e.IsValid() {
+ return fmt.Errorf("%s is not a valid ContinuousProfilingTargetType", str)
+ }
+ return nil
+}
+
+func (e ContinuousProfilingTargetType) MarshalGQL(w io.Writer) {
+ fmt.Fprint(w, strconv.Quote(e.String()))
+}
+
type DetectPoint string
const (
@@ -925,16 +1074,18 @@ func (e EBPFProfilingTargetType) MarshalGQL(w io.Writer) {
type EBPFProfilingTriggerType string
const (
- EBPFProfilingTriggerTypeFixedTime EBPFProfilingTriggerType = "FIXED_TIME"
+ EBPFProfilingTriggerTypeFixedTime EBPFProfilingTriggerType = "FIXED_TIME"
+ EBPFProfilingTriggerTypeContinuousProfiling EBPFProfilingTriggerType = "CONTINUOUS_PROFILING"
)
var AllEBPFProfilingTriggerType = []EBPFProfilingTriggerType{
EBPFProfilingTriggerTypeFixedTime,
+ EBPFProfilingTriggerTypeContinuousProfiling,
}
func (e EBPFProfilingTriggerType) IsValid() bool {
switch e {
- case EBPFProfilingTriggerTypeFixedTime:
+ case EBPFProfilingTriggerTypeFixedTime, EBPFProfilingTriggerTypeContinuousProfiling:
return true
}
return false
@@ -1326,6 +1477,7 @@ const (
ScopeService Scope = "Service"
ScopeServiceInstance Scope = "ServiceInstance"
ScopeEndpoint Scope = "Endpoint"
+ ScopeProcess Scope = "Process"
ScopeServiceRelation Scope = "ServiceRelation"
ScopeServiceInstanceRelation Scope = "ServiceInstanceRelation"
ScopeEndpointRelation Scope = "EndpointRelation"
@@ -1337,6 +1489,7 @@ var AllScope = []Scope{
ScopeService,
ScopeServiceInstance,
ScopeEndpoint,
+ ScopeProcess,
ScopeServiceRelation,
ScopeServiceInstanceRelation,
ScopeEndpointRelation,
@@ -1345,7 +1498,7 @@ var AllScope = []Scope{
func (e Scope) IsValid() bool {
switch e {
- case ScopeAll, ScopeService, ScopeServiceInstance, ScopeEndpoint, ScopeServiceRelation, ScopeServiceInstanceRelation, ScopeEndpointRelation, ScopeProcessRelation:
+ case ScopeAll, ScopeService, ScopeServiceInstance, ScopeEndpoint, ScopeProcess, ScopeServiceRelation, ScopeServiceInstanceRelation, ScopeEndpointRelation, ScopeProcessRelation:
return true
}
return false