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