MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / overallMetrics

Method overallMetrics

pkg/controller/task.go:263–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261}
262
263func (controller *Controller) overallMetrics() {
264 if !controller.runOptions.RecommendedOptions.Features.EnableMetrics {
265 return
266 }
267 cold, used, all := controller.runtimeDispatcher.RuntimeStatistics()
268 metric.SetGauge(RuntimeMetricName(MetricRuntimeCold), float64(cold))
269 metric.SetGauge(RuntimeMetricName(MetricRuntimeInUse), float64(used))
270 metric.SetGauge(RuntimeMetricName(MetricRuntimeAll), float64(all))
271}
272
273func (controller *Controller) runtimeMetrics(logger *logs.Logger) {
274 if !controller.runOptions.RecommendedOptions.Features.EnableMetrics {

Callers 1

metricTaskMethod · 0.95

Calls 3

SetGaugeFunction · 0.92
RuntimeMetricNameFunction · 0.85
RuntimeStatisticsMethod · 0.65

Tested by

no test coverage detected