From 5c013c7a6beeb95ad06817aa572fb36cdbdb53a0 Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Mon, 27 Mar 2023 16:06:46 -0700 Subject: [PATCH] `runsc`: Add `experiment` metadata metric label. This is currently unused, but may be used to contain the name of an experiment that is enabled on `runsc` in the future. Defining the label now means less chance of breakage and less hassle relative to introducing it later. PiperOrigin-RevId: 519855249 --- runsc/config/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runsc/config/config.go b/runsc/config/config.go index 57e7c9550..1227b920c 100644 --- a/runsc/config/config.go +++ b/runsc/config/config.go @@ -405,6 +405,9 @@ func (c *Config) MetricMetadata() map[string]string { "fsmode": fsMode, "cpuarch": runtime.GOARCH, "go": runtime.Version(), + // The "experiment" label is currently unused, but may be used to contain + // extra information about e.g. an experiment that may be enabled. + "experiment": "", } }