Skip to content

Commit

Permalink
bug: fix double count of NetFlow metric (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
lspgn authored Mar 24, 2024
1 parent 74b601c commit c109a5f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions metrics/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ func PromDecoderWrapper(wrapped utils.DecoderFunc, name string) utils.DecoderFun

func recordCommonNetFlowMetrics(version uint16, key string, flowSets []interface{}) {
versionStr := fmt.Sprintf("%d", version)
NetFlowStats.With(
prometheus.Labels{
"router": key,
"version": versionStr,
}).
Inc()

for _, fs := range flowSets {
switch fsConv := fs.(type) {
Expand Down

0 comments on commit c109a5f

Please sign in to comment.