2019-02-15 15:39:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Prometheus
|
|
|
|
module QueryVariables
|
|
|
|
def self.call(environment)
|
|
|
|
{
|
|
|
|
ci_environment_slug: environment.slug,
|
2019-10-12 21:52:04 +05:30
|
|
|
kube_namespace: environment.deployment_namespace || '',
|
2019-02-15 15:39:39 +05:30
|
|
|
environment_filter: %{container_name!="POD",environment="#{environment.slug}"}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|