comment cleanup
This commit is contained in:
		
							parent
							
								
									04789d54e9
								
							
						
					
					
						commit
						09dbed72f8
					
				| 
						 | 
					@ -80,7 +80,6 @@ type uap struct {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func descUAP(ns string) *uap {
 | 
					func descUAP(ns string) *uap {
 | 
				
			||||||
	//	labels := []string{"type", "site_name", "name"}
 | 
					 | 
				
			||||||
	labelA := []string{"stat", "site_name", "name"} // stat + labels[1:]
 | 
						labelA := []string{"stat", "site_name", "name"} // stat + labels[1:]
 | 
				
			||||||
	labelV := []string{"vap_name", "bssid", "radio", "radio_name", "essid", "usage", "site_name", "name"}
 | 
						labelV := []string{"vap_name", "bssid", "radio", "radio_name", "essid", "usage", "site_name", "name"}
 | 
				
			||||||
	labelR := []string{"radio_name", "radio", "site_name", "name"}
 | 
						labelR := []string{"radio_name", "radio", "site_name", "name"}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -36,8 +36,6 @@ type usg struct {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func descUSG(ns string) *usg {
 | 
					func descUSG(ns string) *usg {
 | 
				
			||||||
	//	labels := []string{"version", "model", "serial", "type", "mac", "site_name", "name"}
 | 
					 | 
				
			||||||
	//	labelWan := append([]string{"port"}, labels[6:]...)
 | 
					 | 
				
			||||||
	labels := []string{"port", "site_name", "name"}
 | 
						labels := []string{"port", "site_name", "name"}
 | 
				
			||||||
	return &usg{
 | 
						return &usg{
 | 
				
			||||||
		WanRxPackets:   prometheus.NewDesc(ns+"wan_receive_packets_total", "WAN Receive Packets Total", labels, nil),
 | 
							WanRxPackets:   prometheus.NewDesc(ns+"wan_receive_packets_total", "WAN Receive Packets Total", labels, nil),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -47,8 +47,7 @@ type usw struct {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func descUSW(ns string) *usw {
 | 
					func descUSW(ns string) *usw {
 | 
				
			||||||
	pns := ns + "port_"
 | 
						pns := ns + "port_"
 | 
				
			||||||
	// labels := []string{"type", "site_name", "name"}
 | 
						labelS := []string{"site_name", "name"}
 | 
				
			||||||
	labelS := []string{"site_name", "name"} // labels[1:]
 | 
					 | 
				
			||||||
	labelP := []string{"port_id", "port_num", "port_name", "port_mac", "port_ip", "site_name", "name"}
 | 
						labelP := []string{"port_id", "port_num", "port_name", "port_mac", "port_ip", "site_name", "name"}
 | 
				
			||||||
	return &usw{
 | 
						return &usw{
 | 
				
			||||||
		SwRxPackets:   prometheus.NewDesc(ns+"switch_receive_packets_total", "Switch Packets Received Total", labelS, nil),
 | 
							SwRxPackets:   prometheus.NewDesc(ns+"switch_receive_packets_total", "Switch Packets Received Total", labelS, nil),
 | 
				
			||||||
| 
						 | 
					@ -91,7 +90,6 @@ func descUSW(ns string) *usw {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (u *promUnifi) exportUSW(r report, d *unifi.USW) {
 | 
					func (u *promUnifi) exportUSW(r report, d *unifi.USW) {
 | 
				
			||||||
 | 
					 | 
				
			||||||
	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}
 | 
						infoLabels := []string{d.Version, d.Model, d.Serial, d.Mac, d.IP, d.ID, d.Bytes.Txt}
 | 
				
			||||||
	labelsGuest := append(labels, "guest")
 | 
						labelsGuest := append(labels, "guest")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue