Remove directly reference to Prometheus

This commit is contained in:
RainbowMango
2019-10-29 15:08:16 +08:00
parent d56aaf77b9
commit 4355772bb6
3 changed files with 9 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ limitations under the License.
package main
import (
"github.com/prometheus/client_golang/prometheus"
"k8s.io/component-base/metrics"
)
const (
@@ -39,7 +39,7 @@ type metric struct {
}
func (m metric) buildFQName() string {
return prometheus.BuildFQName(m.Namespace, m.Subsystem, m.Name)
return metrics.BuildFQName(m.Namespace, m.Subsystem, m.Name)
}
type byFQName []metric