Skip to content

Commit

Permalink
networkUdpMetrics error if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjianweibj committed Aug 15, 2018
1 parent 18afaa9 commit cb8a808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ func NewPrometheusCollector(i infoProvider, f ContainerLabelsFunc, includedMetri
},
}...)
}
if includedMetrics.Has(container.NetworkTcpUsageMetrics) {
if includedMetrics.Has(container.NetworkUdpUsageMetrics) {
c.containerMetrics = append(c.containerMetrics, []containerMetric{
{
name: "container_network_udp_usage_total",
Expand Down

0 comments on commit cb8a808

Please sign in to comment.