Module: Gitlab::Prometheus::Queries::QueryAdditionalMetrics

Included in:
AdditionalMetricsDeploymentQuery, AdditionalMetricsEnvironmentQuery, KnativeInvocationQuery
Defined in:
lib/gitlab/prometheus/queries/query_additional_metrics.rb

Instance Method Summary collapse

Instance Method Details

#query_metrics(project, environment, query_context) ⇒ Object


7
8
9
10
# File 'lib/gitlab/prometheus/queries/query_additional_metrics.rb', line 7

def query_metrics(project, environment, query_context)
  matched_metrics(project).map(&query_group(query_context))
    .select(&method(:group_with_any_metrics))
end