| 1 | package metrics |
| 2 | |
| 3 | import "github.com/czerwonk/bird_exporter/protocol" |
| 4 | |
| 5 | // LabelStrategy abstracts the label generation for protocol metrics |
| 6 | type LabelStrategy interface { |
| 7 | // LabelNames is the list of label names |
| 8 | LabelNames(p *protocol.Protocol) []string |
| 9 | |
| 10 | // Label values is the list of values for the labels specified in `LabelNames()` |
| 11 | LabelValues(p *protocol.Protocol) []string |
| 12 | } |