This commit is contained in:
davidnewhall2 2019-12-02 20:50:55 -08:00
commit 2ecd7419e7
1 changed files with 1 additions and 2 deletions

View File

@ -64,8 +64,7 @@ func descDevice(ns string) *unifiDevice {
// UDM is a collection of stats from USG, USW and UAP. It has no unique stats. // UDM is a collection of stats from USG, USW and UAP. It has no unique stats.
func (u *promUnifi) exportUDM(r report, d *unifi.UDM) { func (u *promUnifi) exportUDM(r report, d *unifi.UDM) {
labels := []string{d.Type, d.SiteName, d.Name} labels := []string{d.Type, d.SiteName, d.Name}
labelsGuest := append(labels, "guest") infoLabels := []string{d.Version, d.Model, d.Serial, d.Mac}
labelsUser := append(labels, "user")
// Dream Machine System Data. // Dream Machine System Data.
r.send([]*metric{ r.send([]*metric{
{u.Device.Info, prometheus.GaugeValue, d.Uptime, append(labels, infoLabels...)}, {u.Device.Info, prometheus.GaugeValue, d.Uptime, append(labels, infoLabels...)},