Skip to content

Commit

Permalink
FIX: couble count of flow_process_nf_total.
Browse files Browse the repository at this point in the history
  • Loading branch information
bpereto committed Feb 7, 2024
1 parent ee095a9 commit 2e6c9c0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions metrics/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,23 +92,11 @@ func (p *PromProducerWrapper) Produce(msg interface{}, args *producer.ProduceArg
Add(float64(packet.Count))

case *netflow.NFv9Packet:
NetFlowStats.With(
prometheus.Labels{
"router": key,
"version": "9",
}).
Inc()
recordCommonNetFlowMetrics(9, key, packet.FlowSets)
nfvariant = true
versionStr = "9"

case *netflow.IPFIXPacket:
NetFlowStats.With(
prometheus.Labels{
"router": key,
"version": "10",
}).
Inc()
recordCommonNetFlowMetrics(10, key, packet.FlowSets)
nfvariant = true
versionStr = "10"
Expand Down

0 comments on commit 2e6c9c0

Please sign in to comment.