Skip to content

Commit

Permalink
Merge pull request #4128 from cornershop/feature/service-collectLabel
Browse files Browse the repository at this point in the history
feature(collectors): Added services to collectorLabels
  • Loading branch information
k8s-ci-robot authored Jun 19, 2019
2 parents 333e4fa + c38c66e commit cff97c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/ingress/metric/collectors/socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func NewSocketCollector(pod, namespace, class string, metricsPerHost bool) (*Soc
Namespace: PrometheusNamespace,
ConstLabels: constLabels,
},
[]string{"ingress", "namespace", "status"},
[]string{"ingress", "namespace", "status", "service"},
),

bytesSent: prometheus.NewHistogramVec(
Expand Down Expand Up @@ -243,6 +243,7 @@ func (sc *SocketCollector) handleMessage(msg []byte) {
"namespace": stats.Namespace,
"ingress": stats.Ingress,
"status": stats.Status,
"service": stats.Service,
}

latencyLabels := prometheus.Labels{
Expand Down

0 comments on commit cff97c2

Please sign in to comment.