diff --git a/go.mod b/go.mod index ac3cd005af..2d8994a044 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/nginxinc/nginx-plus-go-client v1.2.0 github.com/nginxinc/nginx-prometheus-exporter v1.1.0 github.com/nginxinc/nginx-service-mesh v1.7.0 - github.com/nginxinc/telemetry-exporter v0.0.0-20240306143108-e74e64e77cff + github.com/nginxinc/telemetry-exporter v0.0.0-20240307135433-a5ecce59bddf github.com/prometheus/client_golang v1.18.0 github.com/prometheus/common v0.47.0 github.com/spiffe/go-spiffe/v2 v2.1.7 diff --git a/go.sum b/go.sum index a7d4675341..44c44476bb 100644 --- a/go.sum +++ b/go.sum @@ -186,8 +186,8 @@ github.com/nginxinc/nginx-prometheus-exporter v1.1.0 h1:Uj+eWKGvUionZc8gWFDnrb3j github.com/nginxinc/nginx-prometheus-exporter v1.1.0/go.mod h1:A1Fy5uLQonVGmwLC5xNxBX+vPFgYzBOvPjNRs8msT0k= github.com/nginxinc/nginx-service-mesh v1.7.0 h1:oxKr+Jdbxkos10VTy5xF2UHCcmfIhqWNlsOK/zPnZDM= github.com/nginxinc/nginx-service-mesh v1.7.0/go.mod h1:8tREM3kSEUGyk8JT8hdCf/9ol2kEo7hLR8b+m5Yd8Fs= -github.com/nginxinc/telemetry-exporter v0.0.0-20240306143108-e74e64e77cff h1:cSvO6697zceDtW+wlehAA2xOQAipHNR+yTaMnD8F9w4= -github.com/nginxinc/telemetry-exporter v0.0.0-20240306143108-e74e64e77cff/go.mod h1:rZ+Ohzwv9LJMzxRDPS/dEwXOUPlNrzjoGkICaG9fv0k= +github.com/nginxinc/telemetry-exporter v0.0.0-20240307135433-a5ecce59bddf h1:PM0o/J1QyRpNCn8C9SI17b5ePuAnLdI1D5B/TV2hneY= +github.com/nginxinc/telemetry-exporter v0.0.0-20240307135433-a5ecce59bddf/go.mod h1:rZ+Ohzwv9LJMzxRDPS/dEwXOUPlNrzjoGkICaG9fv0k= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= diff --git a/internal/telemetry/data.avdl b/internal/telemetry/data.avdl index a425c62759..ea774378fa 100644 --- a/internal/telemetry/data.avdl +++ b/internal/telemetry/data.avdl @@ -42,5 +42,8 @@ It is the UID of the `kube-system` Namespace. */ /** TransportServers is the number of TransportServer resources by the Ingress Controller. */ long? TransportServers = null; + /** Replicas is the number of NIC replicas. */ + long? Replicas = null; + } } diff --git a/internal/telemetry/data_attributes_generated.go b/internal/telemetry/data_attributes_generated.go index 9fbc1610e6..8b76883133 100644 --- a/internal/telemetry/data_attributes_generated.go +++ b/internal/telemetry/data_attributes_generated.go @@ -12,6 +12,7 @@ import ( func (d *Data) Attributes() []attribute.KeyValue { var attrs []attribute.KeyValue + attrs = append(attrs, attribute.String("dataType", "nic-product-telemetry")) attrs = append(attrs, d.Data.Attributes()...) attrs = append(attrs, d.NICResourceCounts.Attributes()...) diff --git a/internal/telemetry/nicresourcecounts_attributes_generated.go b/internal/telemetry/nicresourcecounts_attributes_generated.go index 1c85cd5542..8e0d8599a9 100644 --- a/internal/telemetry/nicresourcecounts_attributes_generated.go +++ b/internal/telemetry/nicresourcecounts_attributes_generated.go @@ -16,6 +16,7 @@ func (d *NICResourceCounts) Attributes() []attribute.KeyValue { attrs = append(attrs, attribute.Int64("VirtualServers", d.VirtualServers)) attrs = append(attrs, attribute.Int64("VirtualServerRoutes", d.VirtualServerRoutes)) attrs = append(attrs, attribute.Int64("TransportServers", d.TransportServers)) + attrs = append(attrs, attribute.Int64("Replicas", d.Replicas)) return attrs }