From f05ca278058d4564c914af97f083272473403903 Mon Sep 17 00:00:00 2001 From: Jimmi Dyson Date: Thu, 6 Aug 2015 11:25:04 +0100 Subject: [PATCH] Add scheme as label to allow relabelling in discovery --- model/labelname.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/model/labelname.go b/model/labelname.go index f41b7ff..bcb8f89 100644 --- a/model/labelname.go +++ b/model/labelname.go @@ -29,6 +29,10 @@ const ( // timeseries. MetricNameLabel LabelName = "__name__" + // SchemeLabel is the name of the label that holds the scheme on which to + // scrape a target. + SchemeLabel LabelName = "__scheme__" + // AddressLabel is the name of the label that holds the address of // a scrape target. AddressLabel LabelName = "__address__"