Skip to content

Commit 910e267

Browse files
authored
Merge branch 'main' into chore/add-telemetry-for-tls-routes
2 parents 8d0b13c + 9a85dbc commit 910e267

File tree

6 files changed

+10
-15
lines changed

6 files changed

+10
-15
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/maxbrunsfeld/counterfeiter/v6 v6.8.1
1111
github.com/nginxinc/nginx-plus-go-client v1.2.2
1212
github.com/nginxinc/nginx-prometheus-exporter v1.3.0
13-
github.com/nginxinc/telemetry-exporter v0.1.0
13+
github.com/nginxinc/telemetry-exporter v0.1.1
1414
github.com/onsi/ginkgo/v2 v2.20.0
1515
github.com/onsi/gomega v1.34.1
1616
github.com/prometheus/client_golang v1.19.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ github.com/nginxinc/nginx-plus-go-client v1.2.2 h1:sl7HqNDDZq2EVu0eQQVoZ6PKYGa4h
101101
github.com/nginxinc/nginx-plus-go-client v1.2.2/go.mod h1:n8OFLzrJulJ2fur28Cwa1Qp5DZNS2VicLV+Adt30LQ4=
102102
github.com/nginxinc/nginx-prometheus-exporter v1.3.0 h1:1JtdxsZH0Uwhu1nL/j/QyOXytP5V5j68AEo2X+DFWb0=
103103
github.com/nginxinc/nginx-prometheus-exporter v1.3.0/go.mod h1:hXoH+X6aIKSyQuO6QTIiPKH3eZyxqy/wW8GYiE3dflU=
104-
github.com/nginxinc/telemetry-exporter v0.1.0 h1:wF71jYx4PQpHv5ML0Ba4qN/o37ZNLfiHENXMZsVO7EQ=
105-
github.com/nginxinc/telemetry-exporter v0.1.0/go.mod h1:Hcb/Fz6TvTZLxF/p9Fa1YDmdScnZ9Azdl8isO4Hd9v4=
104+
github.com/nginxinc/telemetry-exporter v0.1.1 h1:6wRjxra+6997GtVrkRjq5CqJyreQTbwdtmRGyqw7VyY=
105+
github.com/nginxinc/telemetry-exporter v0.1.1/go.mod h1:aNsh1EGGlozhvc3e8lnBfz1V+kfsknHZaUNscHV+yLo=
106106
github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=
107107
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
108108
github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=

internal/mode/static/telemetry/data.avdl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@namespace("gateway.nginx.org") protocol NGFProductTelemetry {
2+
/** Data is the telemetry data for the product. */
23
@df_datatype("ngf-product-telemetry") record Data {
34
/** The field that identifies what type of data this is. */
45
string dataType;

internal/mode/static/telemetry/data_attributes_generated.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
1-
21
package telemetry
2+
33
/*
44
This is a generated file. DO NOT EDIT.
55
*/
66

77
import (
88
"go.opentelemetry.io/otel/attribute"
99

10-
1110
ngxTelemetry "github.com/nginxinc/telemetry-exporter/pkg/telemetry"
12-
1311
)
1412

1513
func (d *Data) Attributes() []attribute.KeyValue {
1614
var attrs []attribute.KeyValue
1715
attrs = append(attrs, attribute.String("dataType", "ngf-product-telemetry"))
18-
19-
2016
attrs = append(attrs, attribute.String("ImageSource", d.ImageSource))
2117
attrs = append(attrs, d.Data.Attributes()...)
2218
attrs = append(attrs, attribute.StringSlice("FlagNames", d.FlagNames))
2319
attrs = append(attrs, attribute.StringSlice("FlagValues", d.FlagValues))
2420
attrs = append(attrs, d.NGFResourceCounts.Attributes()...)
2521
attrs = append(attrs, attribute.Int64("NGFReplicaCount", d.NGFReplicaCount))
26-
2722

2823
return attrs
2924
}

internal/mode/static/telemetry/ngfresourcecounts_attributes_generated.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
21
package telemetry
2+
33
/*
44
This is a generated file. DO NOT EDIT.
55
*/
66

77
import (
88
"go.opentelemetry.io/otel/attribute"
99

10-
1110
ngxTelemetry "github.com/nginxinc/telemetry-exporter/pkg/telemetry"
12-
1311
)
1412

1513
func (d *NGFResourceCounts) Attributes() []attribute.KeyValue {
1614
var attrs []attribute.KeyValue
17-
1815
attrs = append(attrs, attribute.Int64("GatewayCount", d.GatewayCount))
1916
attrs = append(attrs, attribute.Int64("GatewayClassCount", d.GatewayClassCount))
2017
attrs = append(attrs, attribute.Int64("HTTPRouteCount", d.HTTPRouteCount))
@@ -28,7 +25,6 @@ func (d *NGFResourceCounts) Attributes() []attribute.KeyValue {
2825
attrs = append(attrs, attribute.Int64("RouteAttachedClientSettingsPolicyCount", d.RouteAttachedClientSettingsPolicyCount))
2926
attrs = append(attrs, attribute.Int64("ObservabilityPolicyCount", d.ObservabilityPolicyCount))
3027
attrs = append(attrs, attribute.Int64("NginxProxyCount", d.NginxProxyCount))
31-
3228

3329
return attrs
3430
}

tests/suite/reconfig_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,10 @@ var _ = Describe("Reconfiguration Performance Testing", Ordered, Label("reconfig
333333
getStartTime := func() time.Time { return startTime }
334334
modifyStartTime := func() { startTime = startTime.Add(500 * time.Millisecond) }
335335

336-
setup(getDefaultSetupCfg())
336+
cfg := getDefaultSetupCfg()
337+
cfg.nfr = true
338+
setup(cfg)
339+
337340
podNames, err := framework.GetReadyNGFPodNames(k8sClient, ngfNamespace, releaseName, timeoutConfig.GetTimeout)
338341
Expect(err).ToNot(HaveOccurred())
339342
Expect(podNames).To(HaveLen(1))

0 commit comments

Comments
 (0)