Add owner tag on partitions in burrow input (#4281)

This commit is contained in:
Arkady Emelyanov
2018-06-13 23:05:27 +03:00
committed by Daniel Nelson
parent f689463e8e
commit 4e69d10ff7
4 changed files with 9 additions and 6 deletions

View File

@@ -116,6 +116,7 @@ type (
Start apiStatusResponseLagItem `json:"start"`
End apiStatusResponseLagItem `json:"end"`
CurrentLag int64 `json:"current_lag"`
Owner string `json:"owner"`
}
// response: lag field item
@@ -447,6 +448,7 @@ func (b *burrow) genGroupLagMetrics(r *apiResponse, cluster, group string, acc t
"group": group,
"topic": partition.Topic,
"partition": strconv.FormatInt(int64(partition.Partition), 10),
"owner": partition.Owner,
},
)
}