()
| 261 | } |
| 262 | |
| 263 | func (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 | |
| 273 | func (controller *Controller) runtimeMetrics(logger *logs.Logger) { |
| 274 | if !controller.runOptions.RecommendedOptions.Features.EnableMetrics { |
no test coverage detected