@@ -372,8 +372,8 @@ func NewNginxPlusCollector(nginxClient *plusclient.NginxClient, namespace string
372372 "ssl_session_reuses" : newStreamServerZoneMetric (namespace , "ssl_session_reuses" , "Session reuses during SSL handshake" , variableLabelNames .StreamServerZoneVariableLabelNames , constLabels ),
373373 },
374374 upstreamMetrics : map [string ]* prometheus.Desc {
375- "keepalives " : newUpstreamMetric (namespace , "keepalives " , "Idle keepalive connections" , constLabels ),
376- "zombies" : newUpstreamMetric (namespace , "zombies" , "Servers removed from the group but still processing active client requests" , constLabels ),
375+ "keepalive " : newUpstreamMetric (namespace , "keepalive " , "Idle keepalive connections" , constLabels ),
376+ "zombies" : newUpstreamMetric (namespace , "zombies" , "Servers removed from the group but still processing active client requests" , constLabels ),
377377 },
378378 streamUpstreamMetrics : map [string ]* prometheus.Desc {
379379 "zombies" : newStreamUpstreamMetric (namespace , "zombies" , "Servers removed from the group but still processing active client connections" , constLabels ),
@@ -980,8 +980,8 @@ func (c *NginxPlusCollector) Collect(ch chan<- prometheus.Metric) {
980980 ch <- prometheus .MustNewConstMetric (c .upstreamServerMetrics ["ssl_session_reuses" ],
981981 prometheus .CounterValue , float64 (peer .SSL .SessionReuses ), labelValues ... )
982982 }
983- ch <- prometheus .MustNewConstMetric (c .upstreamMetrics ["keepalives " ],
984- prometheus .GaugeValue , float64 (upstream .Keepalives ), name )
983+ ch <- prometheus .MustNewConstMetric (c .upstreamMetrics ["keepalive " ],
984+ prometheus .GaugeValue , float64 (upstream .Keepalive ), name )
985985 ch <- prometheus .MustNewConstMetric (c .upstreamMetrics ["zombies" ],
986986 prometheus .GaugeValue , float64 (upstream .Zombies ), name )
987987 }
0 commit comments