Skip to content

Commit 917bb41

Browse files
committed
Change NGINXProxy to NginxProxy
1 parent 19a1b6e commit 917bb41

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

internal/mode/static/telemetry/collector.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ type NGFResourceCounts struct {
7979
RouteAttachedClientSettingsPolicyCount int64
8080
// ObservabilityPolicyCount is the number of relevant ObservabilityPolicies.
8181
ObservabilityPolicyCount int64
82-
// NGINXProxyCount is the number of NGINXProxies.
83-
NGINXProxyCount int64
82+
// NginxProxyCount is the number of NginxProxies.
83+
NginxProxyCount int64
8484
}
8585

8686
// DataCollectorConfig holds configuration parameters for DataCollectorImpl.
@@ -218,7 +218,7 @@ func collectGraphResourceCount(
218218
}
219219

220220
if g.NginxProxy != nil {
221-
ngfResourceCounts.NGINXProxyCount = 1
221+
ngfResourceCounts.NginxProxyCount = 1
222222
}
223223

224224
return ngfResourceCounts, nil

internal/mode/static/telemetry/collector_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ var _ = Describe("Collector", Ordered, func() {
374374
GatewayAttachedClientSettingsPolicyCount: 1,
375375
RouteAttachedClientSettingsPolicyCount: 2,
376376
ObservabilityPolicyCount: 1,
377-
NGINXProxyCount: 1,
377+
NginxProxyCount: 1,
378378
}
379379
expData.ClusterVersion = "1.29.2"
380380
expData.ClusterPlatform = "kind"
@@ -610,7 +610,7 @@ var _ = Describe("Collector", Ordered, func() {
610610
GatewayAttachedClientSettingsPolicyCount: 1,
611611
RouteAttachedClientSettingsPolicyCount: 1,
612612
ObservabilityPolicyCount: 1,
613-
NGINXProxyCount: 1,
613+
NginxProxyCount: 1,
614614
}
615615

616616
data, err := dataCollector.Collect(ctx)
@@ -634,7 +634,7 @@ var _ = Describe("Collector", Ordered, func() {
634634
GatewayAttachedClientSettingsPolicyCount: 0,
635635
RouteAttachedClientSettingsPolicyCount: 0,
636636
ObservabilityPolicyCount: 0,
637-
NGINXProxyCount: 0,
637+
NginxProxyCount: 0,
638638
}
639639

640640
data, err := dataCollector.Collect(ctx)

internal/mode/static/telemetry/data.avdl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ attached at the Gateway level. */
7878
/** ObservabilityPolicyCount is the number of relevant ObservabilityPolicies. */
7979
long? ObservabilityPolicyCount = null;
8080

81-
/** NGINXProxyCount is the number of NGINXProxies. */
82-
long? NGINXProxyCount = null;
81+
/** NginxProxyCount is the number of NginxProxies. */
82+
long? NginxProxyCount = null;
8383

8484
/** NGFReplicaCount is the number of replicas of the NGF Pod. */
8585
long? NGFReplicaCount = null;

internal/mode/static/telemetry/data_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestDataAttributes(t *testing.T) {
3535
GatewayAttachedClientSettingsPolicyCount: 9,
3636
RouteAttachedClientSettingsPolicyCount: 10,
3737
ObservabilityPolicyCount: 11,
38-
NGINXProxyCount: 12,
38+
NginxProxyCount: 12,
3939
},
4040
NGFReplicaCount: 3,
4141
}
@@ -64,7 +64,7 @@ func TestDataAttributes(t *testing.T) {
6464
attribute.Int64("GatewayAttachedClientSettingsPolicyCount", 9),
6565
attribute.Int64("RouteAttachedClientSettingsPolicyCount", 10),
6666
attribute.Int64("ObservabilityPolicyCount", 11),
67-
attribute.Int64("NGINXProxyCount", 12),
67+
attribute.Int64("NginxProxyCount", 12),
6868
attribute.Int64("NGFReplicaCount", 3),
6969
}
7070

@@ -101,7 +101,7 @@ func TestDataAttributesWithEmptyData(t *testing.T) {
101101
attribute.Int64("GatewayAttachedClientSettingsPolicyCount", 0),
102102
attribute.Int64("RouteAttachedClientSettingsPolicyCount", 0),
103103
attribute.Int64("ObservabilityPolicyCount", 0),
104-
attribute.Int64("NGINXProxyCount", 0),
104+
attribute.Int64("NginxProxyCount", 0),
105105
attribute.Int64("NGFReplicaCount", 0),
106106
}
107107

internal/mode/static/telemetry/ngfresourcecounts_attributes_generated.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (d *NGFResourceCounts) Attributes() []attribute.KeyValue {
2626
attrs = append(attrs, attribute.Int64("GatewayAttachedClientSettingsPolicyCount", d.GatewayAttachedClientSettingsPolicyCount))
2727
attrs = append(attrs, attribute.Int64("RouteAttachedClientSettingsPolicyCount", d.RouteAttachedClientSettingsPolicyCount))
2828
attrs = append(attrs, attribute.Int64("ObservabilityPolicyCount", d.ObservabilityPolicyCount))
29-
attrs = append(attrs, attribute.Int64("NGINXProxyCount", d.NGINXProxyCount))
29+
attrs = append(attrs, attribute.Int64("NginxProxyCount", d.NginxProxyCount))
3030

3131

3232
return attrs

site/content/overview/product-telemetry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Telemetry data is collected once every 24 hours and sent to a service managed by
2626
- **Deployment Replica Count:** the count of NGINX Gateway Fabric Pods.
2727
- **Image Build Source:** whether the image was built by GitHub or locally (values are `gha`, `local`, or `unknown`). The source repository of the images is **not** collected.
2828
- **Deployment Flags:** a list of NGINX Gateway Fabric Deployment flags that are specified by a user. The actual values of non-boolean flags are **not** collected; we only record that they are either `true` or `false` for boolean flags and `default` or `user-defined` for the rest.
29-
- **Count of Resources:** the total count of resources related to NGINX Gateway Fabric. This includes `GatewayClasses`, `Gateways`, `HTTPRoutes`,`GRPCRoutes`, `Secrets`, `Services`, `BackendTLSPolicies`, `ClientSettingsPolicies`, `NGINXProxies`, `ObservabilityPolicies`, and `Endpoints`. The data within these resources is **not** collected.
29+
- **Count of Resources:** the total count of resources related to NGINX Gateway Fabric. This includes `GatewayClasses`, `Gateways`, `HTTPRoutes`,`GRPCRoutes`, `Secrets`, `Services`, `BackendTLSPolicies`, `ClientSettingsPolicies`, `NginxProxies`, `ObservabilityPolicies`, and `Endpoints`. The data within these resources is **not** collected.
3030

3131
This data is used to identify the following information:
3232

tests/suite/telemetry_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var _ = Describe("Telemetry test with OTel collector", Label("telemetry"), func(
8383
"GatewayAttachedClientSettingsPolicyCount: Int(0)",
8484
"RouteAttachedClientSettingsPolicyCount: Int(0)",
8585
"ObservabilityPolicyCount: Int(0)",
86-
"NGINXProxyCount: Int(0)",
86+
"NginxProxyCount: Int(0)",
8787
"NGFReplicaCount: Int(1)",
8888
},
8989
)

0 commit comments

Comments
 (0)