diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/prometheus_metric.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/prometheus_metric.rb b/app/models/prometheus_metric.rb index dbb0fd19b74..69d3a21c397 100644 --- a/app/models/prometheus_metric.rb +++ b/app/models/prometheus_metric.rb @@ -55,7 +55,7 @@ class PrometheusMetric < ActiveRecord::Base end def required_metrics - (REQUIRED_METRICS[group.to_sym] || []).map(&:to_s) + REQUIRED_METRICS[group.to_sym].to_a.map(&:to_s) end def to_query_metric |