Skip to content

Commit d8cae6d

Browse files
committed
Fix broken functions
1 parent 177a6e5 commit d8cae6d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

internal/collector/nginxossreceiver/internal/scraper/stubstatus/stub_status_scraper.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,22 +106,22 @@ func (s *NginxStubStatusScraper) Scrape(context.Context) (pmetric.Metrics, error
106106
metadata.AttributeNginxConnectionsOutcomeHANDLED,
107107
)
108108

109-
s.mb.RecordNginxHTTPConnectionsCountDataPoint(
109+
s.mb.RecordNginxHTTPConnectionCountDataPoint(
110110
now,
111111
stats.Connections.Active,
112112
metadata.AttributeNginxConnectionsOutcomeACTIVE,
113113
)
114-
s.mb.RecordNginxHTTPConnectionsCountDataPoint(
114+
s.mb.RecordNginxHTTPConnectionCountDataPoint(
115115
now,
116116
stats.Connections.Reading,
117117
metadata.AttributeNginxConnectionsOutcomeREADING,
118118
)
119-
s.mb.RecordNginxHTTPConnectionsCountDataPoint(
119+
s.mb.RecordNginxHTTPConnectionCountDataPoint(
120120
now,
121121
stats.Connections.Writing,
122122
metadata.AttributeNginxConnectionsOutcomeWRITING,
123123
)
124-
s.mb.RecordNginxHTTPConnectionsCountDataPoint(
124+
s.mb.RecordNginxHTTPConnectionCountDataPoint(
125125
now,
126126
stats.Connections.Waiting,
127127
metadata.AttributeNginxConnectionsOutcomeWAITING,

internal/collector/nginxplusreceiver/scraper.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)