bird_exporter/metrics/label_strategy.go
2020-02-18 19:55:16 +01:00

13 lines
384 B
Go

package metrics
import "github.com/czerwonk/bird_exporter/protocol"
// LabelStrategy abstracts the label generation for protocol metrics
type LabelStrategy interface {
// LabelNames is the list of label names
LabelNames(p *protocol.Protocol) []string
// Label values is the list of values for the labels specified in `LabelNames()`
LabelValues(p *protocol.Protocol) []string
}