Skip to content

Commit

Permalink
fix up client spool stats to be always 0
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenRover committed Nov 27, 2023
1 parent 37905e1 commit 344c7d2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions semp/getClientMessageSpoolStatsSemp1.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package semp
import (
"encoding/xml"
"errors"
"strconv"

"github.com/go-kit/kit/log/level"
"github.com/prometheus/client_golang/prometheus"
"strconv"
)

// Get some statistics for each individual client of all vpn's
Expand Down Expand Up @@ -40,7 +41,7 @@ func (e *Semp) GetClientMessageSpoolStatsSemp1(ch chan<- prometheus.Metric, item
DestinationGroupError float64 `xml:"destination-group-error"`
SmfTtlExceeded float64 `xml:"smf-ttl-exceeded"`
PublishAclDenied float64 `xml:"publish-acl-denied"`
} `xml:"ingress-flow-stats"`
} `xml:"ingress-flow-stats>ingress-flow-stat"`
EgressFlowStats []struct {
WindowSize float64 `xml:"window-size"`
UsedWindow float64 `xml:"used-window"`
Expand All @@ -51,7 +52,7 @@ func (e *Semp) GetClientMessageSpoolStatsSemp1(ch chan<- prometheus.Metric, item
ConfirmedDeliveredStoreAndForward float64 `xml:"confirmed-delivered-store-and-forward"`
ConfirmedDeliveredCutThrough float64 `xml:"confirmed-delivered-cut-through"`
UnackedMessages float64 `xml:"unacked-messages"`
} `xml:"egress-flow-stats"`
} `xml:"egress-flow-stats>egress-flow-stat"`
} `xml:"message-spool-stats"`
} `xml:"client"`
} `xml:",any"`
Expand Down

0 comments on commit 344c7d2

Please sign in to comment.