Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion server/libs/flow-metrics/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ type Field struct {
// 用于区分不同的trident及其不同的pipeline,用于如下场景:
// - agent和ingester之间的数据传输
// - ingester写入clickhouse,作用类似_id,序列化为_tid
GlobalThreadID uint8
GlobalThreadID uint8 `json:"thread_id" category:"$tag"`

// structTag "datasource":"n|nm|a|am" means datasource: network, network_map, application, application_map
IP6 net.IP `json:"ip6" map_json:"ip6_0" category:"$tag" sub:"network_layer" to_string:"IPv6String" ` // FIXME: 合并IP6和IP
Expand Down Expand Up @@ -1343,6 +1343,7 @@ func (t *Tag) String() string {

func (t *Tag) ReadFromPB(p *pb.MiniTag) {
t.Code = Code(p.Code)
t.GlobalThreadID = uint8(p.Field.GlobalThreadId)
t.IsIPv4 = 1 - uint8(p.Field.IsIpv6)
if t.IsIPv4 == 0 {
if t.IP6 == nil {
Expand Down