mini code cleanup
This commit is contained in:
parent
ff7e0d8067
commit
763af24a3d
@ -26,8 +26,7 @@ func init() {
|
||||
}
|
||||
|
||||
func getDesc(prefix string) *desc {
|
||||
labels := make([]string, 0)
|
||||
labels = append(labels, "name")
|
||||
labels := []string{"name"}
|
||||
|
||||
d := &desc{}
|
||||
d.upDesc = prometheus.NewDesc(prefix+"_session_up", "Protocol is up", labels, nil)
|
||||
|
@ -27,8 +27,7 @@ func init() {
|
||||
}
|
||||
|
||||
func getDesc(prefix string) *desc {
|
||||
labels := make([]string, 0)
|
||||
labels = append(labels, "name")
|
||||
labels := []string{"name"}
|
||||
|
||||
d := &desc{}
|
||||
d.upDesc = prometheus.NewDesc(prefix+"_up", "Protocol is up", labels, nil)
|
||||
|
Loading…
x
Reference in New Issue
Block a user