Merge branch 'master' into dn2_merge
This commit is contained in:
		
						commit
						f4c3f6c932
					
				|  | @ -64,7 +64,8 @@ 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} | ||||||
| 	infoLabels := []string{d.Version, d.Model, d.Serial, d.Mac, d.IP, d.ID, d.Bytes.Txt} | 	labelsGuest := append(labels, "guest") | ||||||
|  | 	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...)}, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue