@@ -108,20 +108,20 @@ func (nps *nginxPlusScraper) recordMetrics(stats *plusapi.Stats) {
108108 int64 (stats .Connections .Dropped ),
109109 metadata .AttributeNginxConnectionsOutcomeDROPPED ,
110110 )
111- nps .mb .RecordNginxHTTPConnectionsCountDataPoint (
111+ nps .mb .RecordNginxHTTPConnectionCountDataPoint (
112112 now ,
113113 int64 (stats .Connections .Active ),
114114 metadata .AttributeNginxConnectionsOutcomeACTIVE ,
115115 )
116- nps .mb .RecordNginxHTTPConnectionsCountDataPoint (
116+ nps .mb .RecordNginxHTTPConnectionCountDataPoint (
117117 now ,
118118 int64 (stats .Connections .Idle ),
119119 metadata .AttributeNginxConnectionsOutcomeIDLE ,
120120 )
121121
122122 // HTTP Requests
123123 nps .mb .RecordNginxHTTPRequestsDataPoint (now , int64 (stats .HTTPRequests .Total ), "" , 0 )
124- nps .mb .RecordNginxHTTPRequestsCountDataPoint (now , int64 (stats .HTTPRequests .Current ))
124+ nps .mb .RecordNginxHTTPRequestCountDataPoint (now , int64 (stats .HTTPRequests .Current ))
125125
126126 nps .recordCacheMetrics (stats , now )
127127 nps .recordHTTPLimitMetrics (stats , now )
@@ -147,9 +147,9 @@ func (nps *nginxPlusScraper) recordStreamMetrics(stats *plusapi.Stats, now pcomm
147147 metadata .AttributeNginxByteIoDirectionTX ,
148148 name ,
149149 )
150- nps .mb .RecordNginxStreamConnectionsAcceptedDataPoint (now , int64 (streamServerZone .Connections ), name )
151- nps .mb .RecordNginxStreamConnectionsDiscardedDataPoint (now , int64 (streamServerZone .Discarded ), name )
152- nps .mb .RecordNginxStreamConnectionsProcessingCountDataPoint (now , int64 (streamServerZone .Processing ), name )
150+ nps .mb .RecordNginxStreamConnectionAcceptedDataPoint (now , int64 (streamServerZone .Connections ), name )
151+ nps .mb .RecordNginxStreamConnectionDiscardedDataPoint (now , int64 (streamServerZone .Discarded ), name )
152+ nps .mb .RecordNginxStreamConnectionProcessingCountDataPoint (now , int64 (streamServerZone .Processing ), name )
153153 nps .mb .RecordNginxStreamSessionStatusDataPoint (
154154 now ,
155155 int64 (streamServerZone .Sessions .Sessions2xx ),
@@ -193,15 +193,15 @@ func (nps *nginxPlusScraper) recordStreamMetrics(stats *plusapi.Stats, now pcomm
193193 peer .Server ,
194194 peer .Name ,
195195 )
196- nps .mb .RecordNginxStreamUpstreamPeerConnectionsCountDataPoint (
196+ nps .mb .RecordNginxStreamUpstreamPeerConnectionCountDataPoint (
197197 now ,
198198 int64 (peer .Active ),
199199 upstream .Zone ,
200200 upstreamName ,
201201 peer .Server ,
202202 peer .Name ,
203203 )
204- nps .mb .RecordNginxStreamUpstreamPeerConnectionsTimeDataPoint (
204+ nps .mb .RecordNginxStreamUpstreamPeerConnectionTimeDataPoint (
205205 now ,
206206 int64 (peer .ConnectTime ),
207207 upstream .Zone ,
@@ -263,7 +263,7 @@ func (nps *nginxPlusScraper) recordStreamMetrics(stats *plusapi.Stats, now pcomm
263263 peer .Server ,
264264 peer .Name ,
265265 )
266- nps .mb .RecordNginxStreamUpstreamPeerUnavailableDataPoint (
266+ nps .mb .RecordNginxStreamUpstreamPeerUnavailablesDataPoint (
267267 now ,
268268 int64 (peer .Unavail ),
269269 upstream .Zone ,
@@ -500,7 +500,7 @@ func (nps *nginxPlusScraper) recordHTTPUpstreamPeerMetrics(stats *plusapi.Stats,
500500 peer .Name ,
501501 )
502502
503- nps .mb .RecordNginxHTTPUpstreamPeerConnectionsCountDataPoint (
503+ nps .mb .RecordNginxHTTPUpstreamPeerConnectionCountDataPoint (
504504 now ,
505505 int64 (peer .Active ),
506506 upstream .Zone ,
0 commit comments