Skip to content

Commit 52b319b

Browse files
ciarams87salonichf5
authored andcommitted
Add image source to telemetry data (nginx#1600)
* Add image source * Move env var to join the others
1 parent 24f10f7 commit 52b319b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/mode/static/telemetry/collector.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ type Data struct {
5555
ImageSource string
5656
Arch string
5757
DeploymentID string
58-
NodeCount int
58+
ImageSource string
5959
NGFResourceCounts NGFResourceCounts
60+
NodeCount int
6061
NGFReplicaCount int
6162
}
6263

@@ -134,6 +135,7 @@ func (c DataCollectorImpl) Collect(ctx context.Context) (Data, error) {
134135
ImageSource: c.cfg.ImageSource,
135136
Arch: runtime.GOARCH,
136137
DeploymentID: deploymentID,
138+
ImageSource: c.cfg.ImageSource,
137139
}
138140

139141
return data, nil

0 commit comments

Comments
 (0)