remove all

This commit is contained in:
davidnewhall2 2019-11-29 13:37:10 -08:00
parent ad3e0851c3
commit f176db5a01
1 changed files with 3 additions and 2 deletions

View File

@ -208,11 +208,11 @@ func (u *unifiCollector) exportUAP(r report, d *unifi.UAP) {
}
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:]...)
labelG := append([]string{"guest"}, labels[2:]...)
r.send([]*metricExports{
// all
/* // all
{u.UAP.ApWifiTxDropped, prometheus.CounterValue, ap.WifiTxDropped, labelA},
{u.UAP.ApRxErrors, prometheus.CounterValue, ap.RxErrors, 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.WifiTxAttempts, prometheus.CounterValue, ap.WifiTxAttempts, labelA},
{u.UAP.MacFilterRejections, prometheus.CounterValue, ap.MacFilterRejections, labelA},
*/
// user
{u.UAP.ApWifiTxDropped, prometheus.CounterValue, ap.UserWifiTxDropped, labelU},
{u.UAP.ApRxErrors, prometheus.CounterValue, ap.UserRxErrors, labelU},