Skip to content

Commit

Permalink
testing30
Browse files Browse the repository at this point in the history
  • Loading branch information
an1l4 committed Aug 23, 2023
1 parent 8111762 commit 461864a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/pkg/clients/kubviz_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ func (n *NATSContext) SubscribeAllKubvizNats(conn clickhouse.DBInterface) {
var metrics model.Reports
err := json.Unmarshal(msg.Data, &metrics)
if err != nil {
log.Fatal(err)
//log.Fatal(err)
log.Println("failed to unmarshal in nats", err)
}
log.Printf("Trivy sbom Metrics Received: %#v,", metrics)
conn.InsertTrivySbomMetrics(metrics)
Expand Down Expand Up @@ -180,3 +181,8 @@ func (n *NATSContext) SubscribeAllKubvizNats(conn clickhouse.DBInterface) {
subscribe(sub)
}
}

// TRIVY_IMAGE_SUBJECT = "METRICS.trivyimage"
// Trivy_Image_Consumer = "TRIVY_IMAGE_CONSUMER"
// TRIVY_SBOM_SUBJECT = "METRICS.trivysbom"
// Trivy_Sbom_Consumer = "TRIVY_SBOM_CONSUMER"

0 comments on commit 461864a

Please sign in to comment.