lib/hawkular/metrics/metrics_client.rb in hawkular-client-2.1.0 vs lib/hawkular/metrics/metrics_client.rb in hawkular-client-2.2.0
- old
+ new
@@ -36,13 +36,13 @@
# @example initialize with Hawkular-tenant option
# Hawkular::Metrics::Client::new("http://server",
# {username:"username",password:"password"},
# {"tenant" => "your tenant ID"})
#
- def initialize(entrypoint = 'http://localhost:8080/hawkular/metrics',
+ def initialize(entrypoint,
credentials = {},
options = {})
-
+ entrypoint = normalize_entrypoint_url entrypoint, 'hawkular/metrics'
super(entrypoint, credentials, options)
@tenants = Client::Tenants.new self
@counters = Client::Counters.new self
@gauges = Client::Gauges.new self
@avail = Client::Availability.new self