Skip to content
Snippets Groups Projects

Deploy prometheus through kubernetes and autoconnect to cluster

Merged Paweł Chojnacki requested to merge pawel/connect_to_prometheus_through_proxy-30480 into master
All threads resolved!
Compare and Show latest version
6 files
+ 242
45
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -49,6 +49,9 @@ class Cluster < ActiveRecord::Base
@@ -49,6 +49,9 @@ class Cluster < ActiveRecord::Base
scope :enabled, -> { where(enabled: true) }
scope :enabled, -> { where(enabled: true) }
scope :disabled, -> { where(enabled: false) }
scope :disabled, -> { where(enabled: false) }
 
scope :for_environment, -> (env) { where(environment_scope: ['*', '', env.slug]) }
 
scope :for_all_environments, -> { where(environment_scope: ['*', '']) }
 
def status_name
def status_name
if provider
if provider
provider.status_name
provider.status_name
Loading