Skip to content

Commit

Permalink
Set MaxCounterHost on agent
Browse files Browse the repository at this point in the history
  • Loading branch information
alpinskiy committed Feb 2, 2024
1 parent cbf4f78 commit 313e193
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions internal/data_model/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,12 @@ func (s *MultiValue) MultiValueToTL(item *tlstatshouse.MultiValue, sampleFactor
if s.Value.MaxHostTag != 0 {
item.SetMaxHostTag(s.Value.MaxHostTag, fieldsMask)
}
// TODO - uncomment after aggregators deplayed
// if s.Value.MinHostTag != s.Value.MaxHostTag {
// item.SetMinHostTag(s.Value.MinHostTag, fieldsMask)
// }
// if s.Value.MaxCounterHostTag != s.Value.MaxHostTag {
// item.SetMaxCounterHostTag(s.Value.MaxCounterHostTag, fieldsMask)
// }
if s.Value.MinHostTag != s.Value.MaxHostTag {
item.SetMinHostTag(s.Value.MinHostTag, fieldsMask)
}
if s.Value.MaxCounterHostTag != s.Value.MaxHostTag {
item.SetMaxCounterHostTag(s.Value.MaxCounterHostTag, fieldsMask)
}
if s.HLL.ItemsCount() != 0 {
*marshalBuf = s.HLL.MarshallAppend((*marshalBuf)[:0])
item.SetUniques(string(*marshalBuf), fieldsMask)
Expand Down

0 comments on commit 313e193

Please sign in to comment.