Serve.Serve.text: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/serve.bend as Serve Lines 152-162 of bend-kube-runtime@0.2.0.0/src/serve.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/serve.bend&start_line=152&end_line=162 import Base import bend-kube-runtime@0.2.0.0/src/runtime.bend as R # The Prometheus text format: one sample per controller; a standby # replica reports only that it leads nothing. def Serve.text(+ss: List<&2, R.Snap>) -> String: Serve.head("bendkube_leader", "gauge", "Whether this replica runs the controllers.") ++ "bendkube_leader " ++ Serve.bool(Bool.not(List.is_empty(&2, R.Snap, ss))) ++ "\n" ++ Serve.family(ss, "bendkube_reconcile_total", "counter", "Reconciles finished.", 1) ++ Serve.family(ss, "bendkube_reconcile_errors_total", "counter", "Reconciles that asked to retry.", 2) ++ Serve.family(ss, "bendkube_watch_events_total", "counter", "Watcher outputs received.", 3) ++ Serve.family(ss, "bendkube_reconcile_running", "gauge", "Reconciles running now.", 4) ++ Serve.family(ss, "bendkube_store_objects", "gauge", "Objects in the primary store.", 5) ++ Serve.family(ss, "bendkube_store_ready", "gauge", "Whether the primary store has listed.", 0) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.is_empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/runtime.bend&name=Snap https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/serve.bend&name=Serve.bool https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/serve.bend&name=Serve.family https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/serve.bend&name=Serve.head