Skip to content

Commit

Permalink
add monitoring count for block during ingestion (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreylean authored Sep 11, 2023
1 parent 2a864b1 commit ea19ac2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/server/server_ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func (s *Server) Ingest(ctx context.Context, request *talaria.IngestRequest) (*t
return nil, err
}
}
s.monitor.Count("server", fmt.Sprintf("%s.ingest.block.count", t.Name()), int64(len(blocks)))
s.monitor.Count("server", fmt.Sprintf("%s.ingest.row.count", t.Name()), int64(rowCount))
}

Expand Down Expand Up @@ -150,6 +151,7 @@ func (s *Server) IngestWithTable(ctx context.Context, request *talaria.IngestWit
}
}

s.monitor.Count("server", fmt.Sprintf("%s.ingestWithTable.block.count", t.Name()), int64(len(blocks)))
s.monitor.Count("server", fmt.Sprintf("%s.ingestWithTable.count", t.Name()), int64(rowCount))
}

Expand Down

0 comments on commit ea19ac2

Please sign in to comment.