@@ -0,0 +1,11 @@
+package telemetry
+
+import (
+	"github.com/spiffe/spire/pkg/common/version"
+)
+
+func EmitVersion(m Metrics) {
+	m.SetGaugeWithLabels([]string{"version"}, 1, []Label{
+		{Name: "version", Value: version.Version()},
+	})
+}
It feels a little odd to have a metric with constant value, where the name (and usefulness) of the metric is solely fulfilled by a label. What are your thoughts on making this a counter with a name like "agent_boot" and "server_boot" or something along those lines?