Commit 42bfdbb0 authored by Daniel Czerwonk's avatar Daniel Czerwonk Committed by GitHub

Update label_strategy.go

parent f8a98ca1
......@@ -2,7 +2,11 @@ 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() []string
// Label values is the list of values for the labels specified in `LabelNames()`
LabelValues(p *protocol.Protocol) []string
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment