-
Notifications
You must be signed in to change notification settings - Fork 19
/
connections.pb.go
10751 lines (10427 loc) · 275 KB
/
connections.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: proto/process/connections.proto
package process
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type RuntimeCompilationResult int32
const (
RuntimeCompilationResult_NotAttempted RuntimeCompilationResult = 0
RuntimeCompilationResult_CompilationSuccess RuntimeCompilationResult = 1
RuntimeCompilationResult_KernelVersionErr RuntimeCompilationResult = 2
RuntimeCompilationResult_VerificationError RuntimeCompilationResult = 3
RuntimeCompilationResult_OutputDirErr RuntimeCompilationResult = 4
RuntimeCompilationResult_OutputFileErr RuntimeCompilationResult = 5
RuntimeCompilationResult_NewCompilerErr RuntimeCompilationResult = 6
RuntimeCompilationResult_CompilationErr RuntimeCompilationResult = 7
RuntimeCompilationResult_ResultReadErr RuntimeCompilationResult = 8
RuntimeCompilationResult_HeaderFetchErr RuntimeCompilationResult = 9
RuntimeCompilationResult_CompiledOutputFound RuntimeCompilationResult = 10
RuntimeCompilationResult_InputHashError RuntimeCompilationResult = 11
)
var RuntimeCompilationResult_name = map[int32]string{
0: "NotAttempted",
1: "CompilationSuccess",
2: "KernelVersionErr",
3: "VerificationError",
4: "OutputDirErr",
5: "OutputFileErr",
6: "NewCompilerErr",
7: "CompilationErr",
8: "ResultReadErr",
9: "HeaderFetchErr",
10: "CompiledOutputFound",
11: "InputHashError",
}
var RuntimeCompilationResult_value = map[string]int32{
"NotAttempted": 0,
"CompilationSuccess": 1,
"KernelVersionErr": 2,
"VerificationError": 3,
"OutputDirErr": 4,
"OutputFileErr": 5,
"NewCompilerErr": 6,
"CompilationErr": 7,
"ResultReadErr": 8,
"HeaderFetchErr": 9,
"CompiledOutputFound": 10,
"InputHashError": 11,
}
func (x RuntimeCompilationResult) String() string {
return proto.EnumName(RuntimeCompilationResult_name, int32(x))
}
func (RuntimeCompilationResult) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_8f660660e88b5927, []int{0}
}
type KernelHeaderFetchResult int32
const (
KernelHeaderFetchResult_FetchNotAttempted KernelHeaderFetchResult = 0
KernelHeaderFetchResult_CustomHeadersFound KernelHeaderFetchResult = 1
KernelHeaderFetchResult_DefaultHeadersFound KernelHeaderFetchResult = 2
KernelHeaderFetchResult_SysfsHeadersFound KernelHeaderFetchResult = 3
KernelHeaderFetchResult_DownloadedHeadersFound KernelHeaderFetchResult = 4
KernelHeaderFetchResult_DownloadSuccess KernelHeaderFetchResult = 5
KernelHeaderFetchResult_HostVersionErr KernelHeaderFetchResult = 6
KernelHeaderFetchResult_DownloadFailure KernelHeaderFetchResult = 7
KernelHeaderFetchResult_ValidationFailure KernelHeaderFetchResult = 8
KernelHeaderFetchResult_ReposDirAccessFailure KernelHeaderFetchResult = 9
KernelHeaderFetchResult_HeadersNotFoundDownloadDisabled KernelHeaderFetchResult = 10
)
var KernelHeaderFetchResult_name = map[int32]string{
0: "FetchNotAttempted",
1: "CustomHeadersFound",
2: "DefaultHeadersFound",
3: "SysfsHeadersFound",
4: "DownloadedHeadersFound",
5: "DownloadSuccess",
6: "HostVersionErr",
7: "DownloadFailure",
8: "ValidationFailure",
9: "ReposDirAccessFailure",
10: "HeadersNotFoundDownloadDisabled",
}
var KernelHeaderFetchResult_value = map[string]int32{
"FetchNotAttempted": 0,
"CustomHeadersFound": 1,
"DefaultHeadersFound": 2,
"SysfsHeadersFound": 3,
"DownloadedHeadersFound": 4,
"DownloadSuccess": 5,
"HostVersionErr": 6,
"DownloadFailure": 7,
"ValidationFailure": 8,
"ReposDirAccessFailure": 9,
"HeadersNotFoundDownloadDisabled": 10,
}
func (x KernelHeaderFetchResult) String() string {
return proto.EnumName(KernelHeaderFetchResult_name, int32(x))
}
func (KernelHeaderFetchResult) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_8f660660e88b5927, []int{1}
}
type COREResult int32
const (
COREResult_SuccessCustomBTF COREResult = 0
COREResult_SuccessEmbeddedBTF COREResult = 1
COREResult_SuccessDefaultBTF COREResult = 2
COREResult_BtfNotFound COREResult = 3
COREResult_AssetReadError COREResult = 4
COREResult_VerifierError COREResult = 5
COREResult_LoaderError COREResult = 6
)
var COREResult_name = map[int32]string{
0: "SuccessCustomBTF",
1: "SuccessEmbeddedBTF",
2: "SuccessDefaultBTF",
3: "BtfNotFound",
4: "AssetReadError",
5: "VerifierError",
6: "LoaderError",
}
var COREResult_value = map[string]int32{
"SuccessCustomBTF": 0,
"SuccessEmbeddedBTF": 1,
"SuccessDefaultBTF": 2,
"BtfNotFound": 3,
"AssetReadError": 4,
"VerifierError": 5,
"LoaderError": 6,
}
func (x COREResult) String() string {
return proto.EnumName(COREResult_name, int32(x))
}
func (COREResult) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_8f660660e88b5927, []int{2}
}
type ConnectionFamily int32
const (
ConnectionFamily_v4 ConnectionFamily = 0
ConnectionFamily_v6 ConnectionFamily = 1
)
var ConnectionFamily_name = map[int32]string{
0: "v4",
1: "v6",
}
var ConnectionFamily_value = map[string]int32{
"v4": 0,
"v6": 1,
}
func (x ConnectionFamily) String() string {
return proto.EnumName(ConnectionFamily_name, int32(x))
}
func (ConnectionFamily) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_8f660660e88b5927, []int{3}
}
type ConnectionDirection int32
const (
ConnectionDirection_unspecified ConnectionDirection = 0
ConnectionDirection_incoming ConnectionDirection = 1
ConnectionDirection_outgoing ConnectionDirection = 2
ConnectionDirection_local ConnectionDirection = 3
ConnectionDirection_none ConnectionDirection = 4
)
var ConnectionDirection_name = map[int32]string{
0: "unspecified",
1: "incoming",
2: "outgoing",
3: "local",
4: "none",
}
var ConnectionDirection_value = map[string]int32{
"unspecified": 0,
"incoming": 1,
"outgoing": 2,
"local": 3,
"none": 4,
}
func (x ConnectionDirection) String() string {
return proto.EnumName(ConnectionDirection_name, int32(x))
}
func (ConnectionDirection) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_8f660660e88b5927, []int{4}
}
type EphemeralPortState int32
const (
EphemeralPortState_ephemeralUnspecified EphemeralPortState = 0
EphemeralPortState_ephemeralTrue EphemeralPortState = 1
EphemeralPortState_ephemeralFalse EphemeralPortState = 2
)
var EphemeralPortState_name = map[int32]string{
0: "ephemeralUnspecified",
1: "ephemeralTrue",
2: "ephemeralFalse",
}
var EphemeralPortState_value = map[string]int32{
"ephemeralUnspecified": 0,
"ephemeralTrue": 1,
"ephemeralFalse": 2,
}
func (x EphemeralPortState) String() string {
return proto.EnumName(EphemeralPortState_name, int32(x))
}
func (EphemeralPortState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_8f660660e88b5927, []int{5}
}
type ProtocolType int32
const (
ProtocolType_protocolUnclassified ProtocolType = 0
ProtocolType_protocolUnknown ProtocolType = 1
ProtocolType_protocolHTTP ProtocolType = 2
ProtocolType_protocolHTTP2 ProtocolType = 3
ProtocolType_protocolTLS ProtocolType = 4
ProtocolType_protocolKafka ProtocolType = 5
ProtocolType_protocolMongo ProtocolType = 6
ProtocolType_protocolPostgres ProtocolType = 7
ProtocolType_protocolAMQP ProtocolType = 8
ProtocolType_protocolRedis ProtocolType = 9
ProtocolType_protocolMySQL ProtocolType = 10
ProtocolType_protocolGRPC ProtocolType = 11
)
var ProtocolType_name = map[int32]string{
0: "protocolUnclassified",
1: "protocolUnknown",
2: "protocolHTTP",
3: "protocolHTTP2",
4: "protocolTLS",
5: "protocolKafka",
6: "protocolMongo",
7: "protocolPostgres",
8: "protocolAMQP",
9: "protocolRedis",
10: "protocolMySQL",
11: "protocolGRPC",
}
var ProtocolType_value = map[string]int32{
"protocolUnclassified": 0,
"protocolUnknown": 1,
"protocolHTTP": 2,
"protocolHTTP2": 3,
"protocolTLS": 4,
"protocolKafka": 5,
"protocolMongo": 6,
"protocolPostgres": 7,
"protocolAMQP": 8,
"protocolRedis": 9,
"protocolMySQL": 10,
"protocolGRPC": 11,
}
func (x ProtocolType) String() string {
return proto.EnumName(ProtocolType_name, int32(x))
}
func (ProtocolType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_8f660660e88b5927, []int{6}
}
type CollectorConnections struct {
HostName string `protobuf:"bytes,2,opt,name=hostName,proto3" json:"hostName,omitempty"`
NetworkId string `protobuf:"bytes,12,opt,name=networkId,proto3" json:"networkId,omitempty"`
Connections []*Connection `protobuf:"bytes,3,rep,name=connections,proto3" json:"connections,omitempty"`
// Message batching metadata
GroupId int32 `protobuf:"varint,5,opt,name=groupId,proto3" json:"groupId,omitempty"`
GroupSize int32 `protobuf:"varint,6,opt,name=groupSize,proto3" json:"groupSize,omitempty"`
// Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
ResolvedResources map[string]*ResourceMetadata `protobuf:"bytes,8,rep,name=resolvedResources,proto3" json:"resolvedResources,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Mapping of processes running in each container
ContainerForPid map[int32]string `protobuf:"bytes,10,rep,name=containerForPid,proto3" json:"containerForPid,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// encoded bytes here are use to store a tags []string
// the tags encoder is more space efficient than protobuf
EncodedTags []byte `protobuf:"bytes,11,opt,name=encodedTags,proto3" json:"encodedTags,omitempty"`
// All tags indexed by Connection.tags
EncodedConnectionsTags []byte `protobuf:"bytes,38,opt,name=encodedConnectionsTags,proto3" json:"encodedConnectionsTags,omitempty"`
ContainerHostType ContainerHostType `protobuf:"varint,15,opt,name=containerHostType,proto3,enum=datadog.process_agent.ContainerHostType" json:"containerHostType,omitempty"`
// For now, we'll keep emitting telemetry from agents < 7.35
ConnTelemetry *CollectorConnectionsTelemetry `protobuf:"bytes,16,opt,name=connTelemetry,proto3" json:"connTelemetry,omitempty"`
ConnTelemetryMap map[string]int64 `protobuf:"bytes,39,rep,name=connTelemetryMap,proto3" json:"connTelemetryMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
// OS Telemetry
Architecture string `protobuf:"bytes,17,opt,name=architecture,proto3" json:"architecture,omitempty"`
KernelVersion string `protobuf:"bytes,18,opt,name=kernelVersion,proto3" json:"kernelVersion,omitempty"`
Platform string `protobuf:"bytes,19,opt,name=platform,proto3" json:"platform,omitempty"`
PlatformVersion string `protobuf:"bytes,20,opt,name=platformVersion,proto3" json:"platformVersion,omitempty"`
// Runtime compilation telemetry
CompilationTelemetryByAsset map[string]*RuntimeCompilationTelemetry `protobuf:"bytes,21,rep,name=compilationTelemetryByAsset,proto3" json:"compilationTelemetryByAsset,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
KernelHeaderFetchResult KernelHeaderFetchResult `protobuf:"varint,41,opt,name=kernelHeaderFetchResult,proto3,enum=datadog.process_agent.KernelHeaderFetchResult" json:"kernelHeaderFetchResult,omitempty"`
// CO-RE telemetry
CORETelemetryByAsset map[string]COREResult `protobuf:"bytes,42,rep,name=CORETelemetryByAsset,proto3" json:"CORETelemetryByAsset,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=datadog.process_agent.COREResult"`
// Prebuilt EBPF assets in use
PrebuiltEBPFAssets []string `protobuf:"bytes,44,rep,name=PrebuiltEBPFAssets,proto3" json:"PrebuiltEBPFAssets,omitempty"`
Routes []*Route `protobuf:"bytes,31,rep,name=routes,proto3" json:"routes,omitempty"`
RouteMetadata []*RouteMetadata `protobuf:"bytes,34,rep,name=routeMetadata,proto3" json:"routeMetadata,omitempty"`
AgentConfiguration *AgentConfiguration `protobuf:"bytes,35,opt,name=agentConfiguration,proto3" json:"agentConfiguration,omitempty"`
// encoded dns is a map of (string) ip-> list of domains (DNSEntry)
EncodedDNS []byte `protobuf:"bytes,14,opt,name=encodedDNS,proto3" json:"encodedDNS,omitempty"`
// All queried DNS domains for which we have collected stats
Domains []string `protobuf:"bytes,30,rep,name=domains,proto3" json:"domains,omitempty"`
//////////////////
// V2 encodings
// all domain strings are now indexes into a single array of strings
// hostname query information. Encoded via V2DNSEncoder.EncodeDomainDatabase
// is a single buffer; varint number of strings, followed by each string.
EncodedDomainDatabase []byte `protobuf:"bytes,36,opt,name=encodedDomainDatabase,proto3" json:"encodedDomainDatabase,omitempty"`
// new representation of encoded DNS. This is a map of the string representation
// of the IP --> DNSDatabaseEntry message. (was encodedDNS). Encoded
// via V2DNSEncoder.EncodeMapped. Full buffer description provided there.
EncodedDnsLookups []byte `protobuf:"bytes,37,opt,name=encodedDnsLookups,proto3" json:"encodedDnsLookups,omitempty"`
ResolvedHostsByName map[string]*Host `protobuf:"bytes,40,rep,name=resolvedHostsByName,proto3" json:"resolvedHostsByName,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (m *CollectorConnections) Reset() { *m = CollectorConnections{} }
func (m *CollectorConnections) String() string { return proto.CompactTextString(m) }
func (*CollectorConnections) ProtoMessage() {}
func (*CollectorConnections) Descriptor() ([]byte, []int) {
return fileDescriptor_8f660660e88b5927, []int{0}
}
func (m *CollectorConnections) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CollectorConnections) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CollectorConnections.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CollectorConnections) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollectorConnections.Merge(m, src)
}
func (m *CollectorConnections) XXX_Size() int {
return m.Size()
}
func (m *CollectorConnections) XXX_DiscardUnknown() {
xxx_messageInfo_CollectorConnections.DiscardUnknown(m)
}
var xxx_messageInfo_CollectorConnections proto.InternalMessageInfo
func (m *CollectorConnections) GetHostName() string {
if m != nil {
return m.HostName
}
return ""
}
func (m *CollectorConnections) GetNetworkId() string {
if m != nil {
return m.NetworkId
}
return ""
}
func (m *CollectorConnections) GetConnections() []*Connection {
if m != nil {
return m.Connections
}
return nil
}
func (m *CollectorConnections) GetGroupId() int32 {
if m != nil {
return m.GroupId
}
return 0
}
func (m *CollectorConnections) GetGroupSize() int32 {
if m != nil {
return m.GroupSize
}
return 0
}
func (m *CollectorConnections) GetResolvedResources() map[string]*ResourceMetadata {
if m != nil {
return m.ResolvedResources
}
return nil
}
func (m *CollectorConnections) GetContainerForPid() map[int32]string {
if m != nil {
return m.ContainerForPid
}
return nil
}
func (m *CollectorConnections) GetEncodedTags() []byte {
if m != nil {
return m.EncodedTags
}
return nil
}
func (m *CollectorConnections) GetEncodedConnectionsTags() []byte {
if m != nil {
return m.EncodedConnectionsTags
}
return nil
}
func (m *CollectorConnections) GetContainerHostType() ContainerHostType {
if m != nil {
return m.ContainerHostType
}
return ContainerHostType_notSpecified
}
func (m *CollectorConnections) GetConnTelemetry() *CollectorConnectionsTelemetry {
if m != nil {
return m.ConnTelemetry
}
return nil
}
func (m *CollectorConnections) GetConnTelemetryMap() map[string]int64 {
if m != nil {
return m.ConnTelemetryMap
}
return nil
}
func (m *CollectorConnections) GetArchitecture() string {
if m != nil {
return m.Architecture
}
return ""
}
func (m *CollectorConnections) GetKernelVersion() string {
if m != nil {
return m.KernelVersion
}
return ""
}
func (m *CollectorConnections) GetPlatform() string {
if m != nil {
return m.Platform
}
return ""
}
func (m *CollectorConnections) GetPlatformVersion() string {
if m != nil {
return m.PlatformVersion
}
return ""
}
func (m *CollectorConnections) GetCompilationTelemetryByAsset() map[string]*RuntimeCompilationTelemetry {
if m != nil {
return m.CompilationTelemetryByAsset
}
return nil
}
func (m *CollectorConnections) GetKernelHeaderFetchResult() KernelHeaderFetchResult {
if m != nil {
return m.KernelHeaderFetchResult
}
return KernelHeaderFetchResult_FetchNotAttempted
}
func (m *CollectorConnections) GetCORETelemetryByAsset() map[string]COREResult {
if m != nil {
return m.CORETelemetryByAsset
}
return nil
}
func (m *CollectorConnections) GetPrebuiltEBPFAssets() []string {
if m != nil {
return m.PrebuiltEBPFAssets
}
return nil
}
func (m *CollectorConnections) GetRoutes() []*Route {
if m != nil {
return m.Routes
}
return nil
}
func (m *CollectorConnections) GetRouteMetadata() []*RouteMetadata {
if m != nil {
return m.RouteMetadata
}
return nil
}
func (m *CollectorConnections) GetAgentConfiguration() *AgentConfiguration {
if m != nil {
return m.AgentConfiguration
}
return nil
}
func (m *CollectorConnections) GetEncodedDNS() []byte {
if m != nil {
return m.EncodedDNS
}
return nil
}
func (m *CollectorConnections) GetDomains() []string {
if m != nil {
return m.Domains
}
return nil
}
func (m *CollectorConnections) GetEncodedDomainDatabase() []byte {
if m != nil {
return m.EncodedDomainDatabase
}
return nil
}
func (m *CollectorConnections) GetEncodedDnsLookups() []byte {
if m != nil {
return m.EncodedDnsLookups
}
return nil
}
func (m *CollectorConnections) GetResolvedHostsByName() map[string]*Host {
if m != nil {
return m.ResolvedHostsByName
}
return nil
}
type Connections struct {
Conns []*Connection `protobuf:"bytes,1,rep,name=conns,proto3" json:"conns,omitempty"`
Dns map[string]*DNSEntry `protobuf:"bytes,2,rep,name=dns,proto3" json:"dns,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// For now, we'll keep emitting telemetry from agents < 7.35
ConnTelemetry *ConnectionsTelemetry `protobuf:"bytes,3,opt,name=connTelemetry,proto3" json:"connTelemetry,omitempty"`
Domains []string `protobuf:"bytes,4,rep,name=domains,proto3" json:"domains,omitempty"`
Routes []*Route `protobuf:"bytes,5,rep,name=routes,proto3" json:"routes,omitempty"`
CompilationTelemetryByAsset map[string]*RuntimeCompilationTelemetry `protobuf:"bytes,6,rep,name=compilationTelemetryByAsset,proto3" json:"compilationTelemetryByAsset,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
AgentConfiguration *AgentConfiguration `protobuf:"bytes,7,opt,name=agentConfiguration,proto3" json:"agentConfiguration,omitempty"`
Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"`
ConnTelemetryMap map[string]int64 `protobuf:"bytes,9,rep,name=connTelemetryMap,proto3" json:"connTelemetryMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
KernelHeaderFetchResult KernelHeaderFetchResult `protobuf:"varint,10,opt,name=kernelHeaderFetchResult,proto3,enum=datadog.process_agent.KernelHeaderFetchResult" json:"kernelHeaderFetchResult,omitempty"`
CORETelemetryByAsset map[string]COREResult `protobuf:"bytes,11,rep,name=CORETelemetryByAsset,proto3" json:"CORETelemetryByAsset,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=datadog.process_agent.COREResult"`
PrebuiltEBPFAssets []string `protobuf:"bytes,12,rep,name=PrebuiltEBPFAssets,proto3" json:"PrebuiltEBPFAssets,omitempty"`
}
func (m *Connections) Reset() { *m = Connections{} }
func (m *Connections) String() string { return proto.CompactTextString(m) }
func (*Connections) ProtoMessage() {}
func (*Connections) Descriptor() ([]byte, []int) {
return fileDescriptor_8f660660e88b5927, []int{1}
}
func (m *Connections) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Connections) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Connections.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Connections) XXX_Merge(src proto.Message) {
xxx_messageInfo_Connections.Merge(m, src)
}
func (m *Connections) XXX_Size() int {
return m.Size()
}
func (m *Connections) XXX_DiscardUnknown() {
xxx_messageInfo_Connections.DiscardUnknown(m)
}
var xxx_messageInfo_Connections proto.InternalMessageInfo
func (m *Connections) GetConns() []*Connection {
if m != nil {
return m.Conns
}
return nil
}
func (m *Connections) GetDns() map[string]*DNSEntry {
if m != nil {
return m.Dns
}
return nil
}
func (m *Connections) GetConnTelemetry() *ConnectionsTelemetry {
if m != nil {
return m.ConnTelemetry
}
return nil
}
func (m *Connections) GetDomains() []string {
if m != nil {
return m.Domains
}
return nil
}
func (m *Connections) GetRoutes() []*Route {
if m != nil {
return m.Routes
}
return nil
}
func (m *Connections) GetCompilationTelemetryByAsset() map[string]*RuntimeCompilationTelemetry {
if m != nil {
return m.CompilationTelemetryByAsset
}
return nil
}
func (m *Connections) GetAgentConfiguration() *AgentConfiguration {
if m != nil {
return m.AgentConfiguration
}
return nil
}
func (m *Connections) GetTags() []string {
if m != nil {
return m.Tags
}
return nil
}
func (m *Connections) GetConnTelemetryMap() map[string]int64 {
if m != nil {
return m.ConnTelemetryMap
}
return nil
}
func (m *Connections) GetKernelHeaderFetchResult() KernelHeaderFetchResult {
if m != nil {
return m.KernelHeaderFetchResult
}
return KernelHeaderFetchResult_FetchNotAttempted
}
func (m *Connections) GetCORETelemetryByAsset() map[string]COREResult {
if m != nil {
return m.CORETelemetryByAsset
}
return nil
}
func (m *Connections) GetPrebuiltEBPFAssets() []string {
if m != nil {
return m.PrebuiltEBPFAssets
}
return nil
}
type Connection struct {
Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
Laddr *Addr `protobuf:"bytes,5,opt,name=laddr,proto3" json:"laddr,omitempty"`
Raddr *Addr `protobuf:"bytes,6,opt,name=raddr,proto3" json:"raddr,omitempty"`
Family ConnectionFamily `protobuf:"varint,10,opt,name=family,proto3,enum=datadog.process_agent.ConnectionFamily" json:"family,omitempty"`
Type ConnectionType `protobuf:"varint,11,opt,name=type,proto3,enum=datadog.process_agent.ConnectionType" json:"type,omitempty"`
IsLocalPortEphemeral EphemeralPortState `protobuf:"varint,41,opt,name=isLocalPortEphemeral,proto3,enum=datadog.process_agent.EphemeralPortState" json:"isLocalPortEphemeral,omitempty"`
// Relative counters since last check
LastBytesSent uint64 `protobuf:"varint,16,opt,name=lastBytesSent,proto3" json:"lastBytesSent,omitempty"`
LastBytesReceived uint64 `protobuf:"varint,17,opt,name=lastBytesReceived,proto3" json:"lastBytesReceived,omitempty"`
LastRetransmits uint32 `protobuf:"varint,18,opt,name=lastRetransmits,proto3" json:"lastRetransmits,omitempty"`
Direction ConnectionDirection `protobuf:"varint,19,opt,name=direction,proto3,enum=datadog.process_agent.ConnectionDirection" json:"direction,omitempty"`
LastPacketsSent uint64 `protobuf:"varint,38,opt,name=lastPacketsSent,proto3" json:"lastPacketsSent,omitempty"`
LastPacketsReceived uint64 `protobuf:"varint,39,opt,name=lastPacketsReceived,proto3" json:"lastPacketsReceived,omitempty"`
Protocol *ProtocolStack `protobuf:"bytes,48,opt,name=protocol,proto3" json:"protocol,omitempty"`
// Network namespace
NetNS uint32 `protobuf:"varint,20,opt,name=netNS,proto3" json:"netNS,omitempty"`
// NetworkID of the remote address (post-resolution field)
RemoteNetworkId string `protobuf:"bytes,32,opt,name=remoteNetworkId,proto3" json:"remoteNetworkId,omitempty"`
// the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
IpTranslation *IPTranslation `protobuf:"bytes,21,opt,name=ipTranslation,proto3" json:"ipTranslation,omitempty"`
// TCP-specific metrics
Rtt uint32 `protobuf:"varint,22,opt,name=rtt,proto3" json:"rtt,omitempty"`
RttVar uint32 `protobuf:"varint,23,opt,name=rttVar,proto3" json:"rttVar,omitempty"`
// Indicates that this connection begins and ends on the same host
IntraHost bool `protobuf:"varint,24,opt,name=intraHost,proto3" json:"intraHost,omitempty"`
// DNS-specific metrics
DnsSuccessfulResponses uint32 `protobuf:"varint,25,opt,name=dnsSuccessfulResponses,proto3" json:"dnsSuccessfulResponses,omitempty"`
DnsFailedResponses uint32 `protobuf:"varint,26,opt,name=dnsFailedResponses,proto3" json:"dnsFailedResponses,omitempty"`
DnsTimeouts uint32 `protobuf:"varint,27,opt,name=dnsTimeouts,proto3" json:"dnsTimeouts,omitempty"`
DnsSuccessLatencySum uint64 `protobuf:"varint,28,opt,name=dnsSuccessLatencySum,proto3" json:"dnsSuccessLatencySum,omitempty"`
DnsFailureLatencySum uint64 `protobuf:"varint,29,opt,name=dnsFailureLatencySum,proto3" json:"dnsFailureLatencySum,omitempty"`
DnsCountByRcode map[uint32]uint32 `protobuf:"bytes,33,rep,name=dnsCountByRcode,proto3" json:"dnsCountByRcode,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
// TCP state transition counters relative to last check
LastTcpEstablished uint32 `protobuf:"varint,30,opt,name=lastTcpEstablished,proto3" json:"lastTcpEstablished,omitempty"`
LastTcpClosed uint32 `protobuf:"varint,31,opt,name=lastTcpClosed,proto3" json:"lastTcpClosed,omitempty"`
// dns stats based on domain queried, the key corresponds to an index into the `domains` field
// dnsStatsByDomain is deprecated field, left in for handling old agent versions
DnsStatsByDomain map[int32]*DNSStats `protobuf:"bytes,34,rep,name=dnsStatsByDomain,proto3" json:"dnsStatsByDomain,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// dnsStatsByDomainByQueryType is new field
DnsStatsByDomainByQueryType map[int32]*DNSStatsByQueryType `protobuf:"bytes,42,rep,name=dnsStatsByDomainByQueryType,proto3" json:"dnsStatsByDomainByQueryType,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
DnsStatsByDomainOffsetByQueryType map[int32]*DNSStatsByQueryType `protobuf:"bytes,43,rep,name=dnsStatsByDomainOffsetByQueryType,proto3" json:"dnsStatsByDomainOffsetByQueryType,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
RouteIdx int32 `protobuf:"varint,36,opt,name=routeIdx,proto3" json:"routeIdx,omitempty"`
// the index of the resolved target of the route (post-resolution field)
RouteTargetIdx int32 `protobuf:"varint,40,opt,name=routeTargetIdx,proto3" json:"routeTargetIdx,omitempty"`
// serialized HTTPAggregations object summarizing all http transactions recorded for this connection, organized by request path
HttpAggregations []byte `protobuf:"bytes,37,opt,name=httpAggregations,proto3" json:"httpAggregations,omitempty"`
// The stored values corresponds to an index into the `Connections.tags` field
Tags []uint32 `protobuf:"varint,44,rep,name=tags,proto3" json:"tags,omitempty"`
// the tags index of encodedConnectionsTags (from process.tagsV2.Encode())
TagsIdx int32 `protobuf:"varint,45,opt,name=tagsIdx,proto3" json:"tagsIdx,omitempty"`
// a checksum of all the tags in this connection. Populated by the agent, but used by the backend to know when tags have changed for a connection.
TagsChecksum uint32 `protobuf:"varint,47,opt,name=tagsChecksum,proto3" json:"tagsChecksum,omitempty"`
// Used for offset state management (backend)
StateIndex uint32 `protobuf:"varint,46,opt,name=stateIndex,proto3" json:"stateIndex,omitempty"`
// serialized DataStreamsAggregations object summarizing all data streams transactions (Kafka produce & Kafka fetch) recorded for this connection organized by topic
DataStreamsAggregations []byte `protobuf:"bytes,49,opt,name=dataStreamsAggregations,proto3" json:"dataStreamsAggregations,omitempty"`
// serialized HTTP2Aggregations object summarizing all http2 transactions recorded for this connection, organized by request path
Http2Aggregations []byte `protobuf:"bytes,50,opt,name=http2Aggregations,proto3" json:"http2Aggregations,omitempty"`
// serialized DatabaseAggregations object summarizing all database transactions recorded for this connection.
DatabaseAggregations []byte `protobuf:"bytes,51,opt,name=databaseAggregations,proto3" json:"databaseAggregations,omitempty"`
// serialized map of POSIX error codes to the number of times they have been encountered in the context of this connection (ex [110: 3] would mean that the connection has seen 3 ETIMEDOUT errors)
TcpFailuresByErrCode map[uint32]uint32 `protobuf:"bytes,52,rep,name=tcpFailuresByErrCode,proto3" json:"tcpFailuresByErrCode,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
}
func (m *Connection) Reset() { *m = Connection{} }
func (m *Connection) String() string { return proto.CompactTextString(m) }
func (*Connection) ProtoMessage() {}
func (*Connection) Descriptor() ([]byte, []int) {
return fileDescriptor_8f660660e88b5927, []int{2}
}
func (m *Connection) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Connection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Connection.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Connection) XXX_Merge(src proto.Message) {
xxx_messageInfo_Connection.Merge(m, src)
}
func (m *Connection) XXX_Size() int {
return m.Size()
}
func (m *Connection) XXX_DiscardUnknown() {
xxx_messageInfo_Connection.DiscardUnknown(m)
}
var xxx_messageInfo_Connection proto.InternalMessageInfo
func (m *Connection) GetPid() int32 {
if m != nil {
return m.Pid
}
return 0
}
func (m *Connection) GetLaddr() *Addr {
if m != nil {
return m.Laddr
}
return nil
}
func (m *Connection) GetRaddr() *Addr {
if m != nil {
return m.Raddr
}
return nil
}
func (m *Connection) GetFamily() ConnectionFamily {
if m != nil {
return m.Family
}
return ConnectionFamily_v4
}
func (m *Connection) GetType() ConnectionType {
if m != nil {
return m.Type
}
return ConnectionType_tcp
}
func (m *Connection) GetIsLocalPortEphemeral() EphemeralPortState {
if m != nil {
return m.IsLocalPortEphemeral
}
return EphemeralPortState_ephemeralUnspecified
}
func (m *Connection) GetLastBytesSent() uint64 {
if m != nil {
return m.LastBytesSent
}
return 0
}
func (m *Connection) GetLastBytesReceived() uint64 {
if m != nil {
return m.LastBytesReceived
}
return 0
}
func (m *Connection) GetLastRetransmits() uint32 {
if m != nil {
return m.LastRetransmits
}
return 0
}
func (m *Connection) GetDirection() ConnectionDirection {
if m != nil {
return m.Direction
}
return ConnectionDirection_unspecified
}
func (m *Connection) GetLastPacketsSent() uint64 {
if m != nil {
return m.LastPacketsSent
}
return 0
}
func (m *Connection) GetLastPacketsReceived() uint64 {
if m != nil {
return m.LastPacketsReceived
}
return 0
}
func (m *Connection) GetProtocol() *ProtocolStack {
if m != nil {
return m.Protocol
}
return nil
}
func (m *Connection) GetNetNS() uint32 {
if m != nil {
return m.NetNS
}
return 0
}
func (m *Connection) GetRemoteNetworkId() string {
if m != nil {
return m.RemoteNetworkId
}
return ""
}
func (m *Connection) GetIpTranslation() *IPTranslation {
if m != nil {
return m.IpTranslation
}
return nil
}
func (m *Connection) GetRtt() uint32 {
if m != nil {
return m.Rtt
}
return 0
}
func (m *Connection) GetRttVar() uint32 {
if m != nil {
return m.RttVar
}
return 0
}
func (m *Connection) GetIntraHost() bool {
if m != nil {
return m.IntraHost
}
return false
}
func (m *Connection) GetDnsSuccessfulResponses() uint32 {
if m != nil {
return m.DnsSuccessfulResponses
}
return 0
}
func (m *Connection) GetDnsFailedResponses() uint32 {
if m != nil {
return m.DnsFailedResponses
}
return 0
}
func (m *Connection) GetDnsTimeouts() uint32 {
if m != nil {
return m.DnsTimeouts
}
return 0
}
func (m *Connection) GetDnsSuccessLatencySum() uint64 {
if m != nil {
return m.DnsSuccessLatencySum
}
return 0
}
func (m *Connection) GetDnsFailureLatencySum() uint64 {
if m != nil {
return m.DnsFailureLatencySum
}
return 0
}
func (m *Connection) GetDnsCountByRcode() map[uint32]uint32 {
if m != nil {
return m.DnsCountByRcode
}
return nil
}