def Serve.text
bend-kube-runtime@0.2.0.0 · src/serve.bend:152
import bend-kube-runtime@0.2.0.0/src/serve.bend as Serve
import Base
import bend-kube-runtime@0.2.0.0/src/runtime.bend as R
152
153
154def Serve.text(+ss: List<&2, R.Snap>) -> String:
155 Serve.head("bendkube_leader", "gauge", "Whether this replica runs the controllers.")
156 ++ "bendkube_leader " ++ Serve.bool(Bool.not(List.is_empty(&2, R.Snap, ss))) ++ "\n"
157 ++ Serve.family(ss, "bendkube_reconcile_total", "counter", "Reconciles finished.", 1)
158 ++ Serve.family(ss, "bendkube_reconcile_errors_total", "counter", "Reconciles that asked to retry.", 2)
159 ++ Serve.family(ss, "bendkube_watch_events_total", "counter", "Watcher outputs received.", 3)
160 ++ Serve.family(ss, "bendkube_reconcile_running", "gauge", "Reconciles running now.", 4)
161 ++ Serve.family(ss, "bendkube_store_objects", "gauge", "Objects in the primary store.", 5)
162 ++ Serve.family(ss, "bendkube_store_ready", "gauge", "Whether the primary store has listed.", 0)