Skip to content

Commit

Permalink
Merge pull request #527 from jrafanie/delay_load_prometheus_api_client
Browse files Browse the repository at this point in the history
Delay load prometheus client
  • Loading branch information
agrare authored May 8, 2024
2 parents 6aaf8bd + 3f51387 commit 474058f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
module ManageIQ::Providers::Kubernetes::ContainerManager::MetricsCapture::PrometheusClientMixin
require 'prometheus/api_client'

def prometheus_client
@prometheus_uri ||= prometheus_uri
@prometheus_credentials ||= prometheus_credentials
Expand All @@ -10,6 +8,8 @@ def prometheus_client
end

def prometheus_client_new(uri, credentials, options)
require 'prometheus/api_client'

Prometheus::ApiClient.client(
:url => uri.to_s,
:options => options,
Expand Down

0 comments on commit 474058f

Please sign in to comment.