Welcome to mirror list, hosted at ThFree Co, Russian Federation.

query_variables.rb « prometheus « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ba2d33ee1c151a3e88b433ea72504650038b9994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

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