3 Commits

Author SHA1 Message Date
Daniel Czerwonk
42bfdbb0fc
Update label_strategy.go 2018-08-09 11:34:24 +02:00
Arthur Gautier
e570048463 metrics: allow label_strategy to be implemented as api
I use this exporter as an api, and I need to implement another
custom label strategy. Purpose being to habe business logic in
those labels (datacenter, ...).

Because the interface is private, this can not be implemented
elsewhere. This commit makes it public.

Signed-off-by: Arthur Gautier <baloo@gandi.net>
2018-08-09 06:43:29 +00:00
Daniel Czerwonk
c8354f281e new encapsulation with label strategies 2017-11-30 23:35:31 +01:00