Skip to content

Commit 13e043c

Browse files
committed
Load 5 days
1 parent b83b086 commit 13e043c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

kustomization/fleet-telemetry-consumer/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: fleet-telemetry-consumer
18-
image: quay.io/rajsinghcpre/fleet-telemetry-consumer:v0.0.23
18+
image: quay.io/rajsinghcpre/fleet-telemetry-consumer:v0.0.25
1919
# Removed the command that uses the config file
2020
volumeMounts:
2121
- name: data
@@ -142,7 +142,7 @@ spec:
142142
name: metrics
143143
env:
144144
- name: LOAD_DAYS
145-
value: "1"
145+
value: "5"
146146
# Kafka Configuration
147147
- name: KAFKA_BOOTSTRAP_SERVERS
148148
value: "tesla-kafka-bootstrap.tesla:9092"

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ func createTelemetryTable(db *sql.DB) error {
498498
vin text,
499499
created_at timestamp with time zone,
500500
data jsonb,
501-
PRIMARY KEY (vin, created_at)
501+
data_hash text,
502+
PRIMARY KEY (vin, created_at, data_hash)
502503
);`
503504
_, err := db.Exec(query)
504505
if err != nil {

0 commit comments

Comments
 (0)