fixed wrong metric name

This commit is contained in:
Daniel Czerwonk 2017-05-26 18:55:35 +02:00
parent 284175e5bb
commit 3c31385cc9

View File

@ -30,11 +30,11 @@ func getDesc(prefix string) *desc {
labels = append(labels, "name")
d := &desc{}
d.upDesc = prometheus.NewDesc(prefix+"_up", "Protocol is up", labels, nil)
d.importCountDesc = prometheus.NewDesc(prefix+"_prefix_count_import", "Number of imported routes", labels, nil)
d.exportCountDesc = prometheus.NewDesc(prefix+"_prefix_count_export", "Number of exported routes", labels, nil)
d.filterCountDesc = prometheus.NewDesc(prefix+"_prefix_count_filter", "Number of filtered routes", labels, nil)
d.uptimeDesc = prometheus.NewDesc(prefix+"_uptime", "Uptime of the protocol in seconds", labels, nil)
d.upDesc = prometheus.NewDesc(prefix+"_session_up", "Protocol is up", labels, nil)
d.importCountDesc = prometheus.NewDesc(prefix+"_session_prefix_count_import", "Number of imported routes", labels, nil)
d.exportCountDesc = prometheus.NewDesc(prefix+"_session_prefix_count_export", "Number of exported routes", labels, nil)
d.filterCountDesc = prometheus.NewDesc(prefix+"_session_prefix_count_filter", "Number of filtered routes", labels, nil)
d.uptimeDesc = prometheus.NewDesc(prefix+"_session_uptime", "Uptime of the protocol in seconds", labels, nil)
return d
}