Merge pull request #4128 from cornershop/feature/service-collectLabel
feature(collectors): Added services to collectorLabels
This commit is contained in:
commit
cff97c210a
1 changed files with 2 additions and 1 deletions
|
@ -169,7 +169,7 @@ func NewSocketCollector(pod, namespace, class string, metricsPerHost bool) (*Soc
|
||||||
Namespace: PrometheusNamespace,
|
Namespace: PrometheusNamespace,
|
||||||
ConstLabels: constLabels,
|
ConstLabels: constLabels,
|
||||||
},
|
},
|
||||||
[]string{"ingress", "namespace", "status"},
|
[]string{"ingress", "namespace", "status", "service"},
|
||||||
),
|
),
|
||||||
|
|
||||||
bytesSent: prometheus.NewHistogramVec(
|
bytesSent: prometheus.NewHistogramVec(
|
||||||
|
@ -243,6 +243,7 @@ func (sc *SocketCollector) handleMessage(msg []byte) {
|
||||||
"namespace": stats.Namespace,
|
"namespace": stats.Namespace,
|
||||||
"ingress": stats.Ingress,
|
"ingress": stats.Ingress,
|
||||||
"status": stats.Status,
|
"status": stats.Status,
|
||||||
|
"service": stats.Service,
|
||||||
}
|
}
|
||||||
|
|
||||||
latencyLabels := prometheus.Labels{
|
latencyLabels := prometheus.Labels{
|
||||||
|
|
Loading…
Reference in a new issue