gitlab-org--gitlab-foss/lib/gitlab/prometheus/query_variables.rb
2018-11-23 22:35:38 +01:00

15 lines
393 B
Ruby

# frozen_string_literal: true
module Gitlab
module Prometheus
module QueryVariables
def self.call(environment)
{
ci_environment_slug: environment.slug,
kube_namespace: environment.deployment_platform&.actual_namespace || '',
environment_filter: %{container_name!="POD",environment="#{environment.slug}"}
}
end
end
end
end