You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change adds a metric to count the number of running containers,
according to Docker.
Updates golang/go#25224
Updates golang/go#38530
Change-Id: Id989986928dff594cb1de0903a56dcffed8220c4
Reviewed-on: https://go-review.googlesource.com/c/playground/+/229680
Run-TryBot: Alexander Rakoczy <alex@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
// * The views are prefixed with go-playground-sandbox.
23
24
// * ochttp.KeyServerRoute is added as a tag to label metrics per-route.
24
25
var (
26
+
mContainers=stats.Int64("go-playground/sandbox/container_count", "number of sandbox containers", stats.UnitDimensionless)
27
+
mUnwantedContainers=stats.Int64("go-playground/sandbox/unwanted_container_count", "number of sandbox containers that are unexpectedly running", stats.UnitDimensionless)
28
+
mMaxContainers=stats.Int64("go-playground/sandbox/max_container_count", "target number of sandbox containers", stats.UnitDimensionless)
29
+
30
+
containerCount=&view.View{
31
+
Name: "go-playground/sandbox/container_count",
32
+
Description: "Number of running sandbox containers",
0 commit comments