15 lines
287 B
Go
15 lines
287 B
Go
package metrics
|
|
|
|
import "github.com/czerwonk/bird_exporter/protocol"
|
|
|
|
type LegacyLabelStrategy struct {
|
|
}
|
|
|
|
func (*LegacyLabelStrategy) labelNames() []string {
|
|
return []string{"name"}
|
|
}
|
|
|
|
func (*LegacyLabelStrategy) labelValues(p *protocol.Protocol) []string {
|
|
return []string{p.Name}
|
|
}
|