Skip to content

Commit

Permalink
Merge pull request #80 from vijeyash1/main
Browse files Browse the repository at this point in the history
changed uuid to string in insert kubviz event into clickhouse
  • Loading branch information
jebinjeb authored Jul 11, 2023
2 parents 5538df8 + 044d2d3 commit b5c9c86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/pkg/clickhouse/db_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (c *DBClient) InsertKubvizEvent(metrics model.Metrics) {
eventJson, _ := json.Marshal(metrics.Event)
if _, err := stmt.Exec(
metrics.ClusterName,
metrics.Event.UID,
string(metrics.Event.UID),
time.Now(),
metrics.Type,
metrics.Event.Name,
Expand Down
2 changes: 1 addition & 1 deletion client/pkg/clickhouse/statements.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type DBStatement string
const kubvizTable DBStatement = `
CREATE TABLE IF NOT EXISTS events (
ClusterName String,
Id UUID,
Id String,
EventTime DateTime,
OpType String,
Name String,
Expand Down

0 comments on commit b5c9c86

Please sign in to comment.