remove all
This commit is contained in:
parent
ad3e0851c3
commit
f176db5a01
|
|
@ -208,11 +208,11 @@ func (u *unifiCollector) exportUAP(r report, d *unifi.UAP) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *unifiCollector) exportUAPstats(r report, labels []string, ap *unifi.Ap) {
|
func (u *unifiCollector) exportUAPstats(r report, labels []string, ap *unifi.Ap) {
|
||||||
labelA := append([]string{"all"}, labels[2:]...)
|
// labelA := append([]string{"all"}, labels[2:]...)
|
||||||
labelU := append([]string{"user"}, labels[2:]...)
|
labelU := append([]string{"user"}, labels[2:]...)
|
||||||
labelG := append([]string{"guest"}, labels[2:]...)
|
labelG := append([]string{"guest"}, labels[2:]...)
|
||||||
r.send([]*metricExports{
|
r.send([]*metricExports{
|
||||||
// all
|
/* // all
|
||||||
{u.UAP.ApWifiTxDropped, prometheus.CounterValue, ap.WifiTxDropped, labelA},
|
{u.UAP.ApWifiTxDropped, prometheus.CounterValue, ap.WifiTxDropped, labelA},
|
||||||
{u.UAP.ApRxErrors, prometheus.CounterValue, ap.RxErrors, labelA},
|
{u.UAP.ApRxErrors, prometheus.CounterValue, ap.RxErrors, labelA},
|
||||||
{u.UAP.ApRxDropped, prometheus.CounterValue, ap.RxDropped, labelA},
|
{u.UAP.ApRxDropped, prometheus.CounterValue, ap.RxDropped, labelA},
|
||||||
|
|
@ -227,6 +227,7 @@ func (u *unifiCollector) exportUAPstats(r report, labels []string, ap *unifi.Ap)
|
||||||
{u.UAP.ApRxBytes, prometheus.CounterValue, ap.RxBytes, labelA},
|
{u.UAP.ApRxBytes, prometheus.CounterValue, ap.RxBytes, labelA},
|
||||||
{u.UAP.WifiTxAttempts, prometheus.CounterValue, ap.WifiTxAttempts, labelA},
|
{u.UAP.WifiTxAttempts, prometheus.CounterValue, ap.WifiTxAttempts, labelA},
|
||||||
{u.UAP.MacFilterRejections, prometheus.CounterValue, ap.MacFilterRejections, labelA},
|
{u.UAP.MacFilterRejections, prometheus.CounterValue, ap.MacFilterRejections, labelA},
|
||||||
|
*/
|
||||||
// user
|
// user
|
||||||
{u.UAP.ApWifiTxDropped, prometheus.CounterValue, ap.UserWifiTxDropped, labelU},
|
{u.UAP.ApWifiTxDropped, prometheus.CounterValue, ap.UserWifiTxDropped, labelU},
|
||||||
{u.UAP.ApRxErrors, prometheus.CounterValue, ap.UserRxErrors, labelU},
|
{u.UAP.ApRxErrors, prometheus.CounterValue, ap.UserRxErrors, labelU},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue