Skip to content

Commit 0101835

Browse files
committed
Fix metrics labels
Signed-off-by: terashima <tomoya-terashima@cybozu.co.jp>
1 parent 94fd2a2 commit 0101835

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

v2/cmd/coil-egress/sub/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func subMain() error {
7878
}
7979
}
8080

81-
protocols := make([]string, 0, 0)
81+
protocols := make([]string, 0)
8282
for protocol := range protocolMap {
8383
protocols = append(protocols, protocol)
8484
}

v2/pkg/metrics/egress.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ var (
2525
Subsystem: "egress",
2626
Name: "nf_conntrack_entries_count",
2727
Help: "the number of entries in the nf_conntrack table",
28-
}, []string{"namespace", "pod", "egress", "protocol"})
28+
}, []string{"namespace", "pod", "egress"})
2929

3030
NfConnctackLimit = prometheus.NewGaugeVec(prometheus.GaugeOpts{
3131
Namespace: constants.MetricsNS,
3232
Subsystem: "egress",
3333
Name: "nf_conntrack_entries_limit",
3434
Help: "the limit of the nf_conntrack table",
35-
}, []string{"namespace", "pod", "egress", "protocol"})
35+
}, []string{"namespace", "pod", "egress"})
3636

3737
NfTableMasqueradePackets = prometheus.NewGaugeVec(prometheus.GaugeOpts{
3838
Namespace: constants.MetricsNS,

0 commit comments

Comments
 (0)