Skip to content

Commit c109a5f

Browse files
authored
bug: fix double count of NetFlow metric (#302)
1 parent 74b601c commit c109a5f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

metrics/decoder.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ func PromDecoderWrapper(wrapped utils.DecoderFunc, name string) utils.DecoderFun
8686

8787
func recordCommonNetFlowMetrics(version uint16, key string, flowSets []interface{}) {
8888
versionStr := fmt.Sprintf("%d", version)
89-
NetFlowStats.With(
90-
prometheus.Labels{
91-
"router": key,
92-
"version": versionStr,
93-
}).
94-
Inc()
9589

9690
for _, fs := range flowSets {
9791
switch fsConv := fs.(type) {

0 commit comments

Comments
 (0)