class Gremlin::Instruments::Gauge
Public Instance Methods
get(labels={})
click to toggle source
# File lib/gremlin/instruments/gauge.rb, line 19 def get(labels={}) v = retention_get[labels.to_json] cast(v) end
retention_key()
click to toggle source
# File lib/gremlin/instruments/gauge.rb, line 15 def retention_key "gremlin_prometheus_#{node}_metrics_gauge_#{name}" end
set(labels={}, value)
click to toggle source
# File lib/gremlin/instruments/gauge.rb, line 6 def set(labels={}, value) @r.hset retention_key, labels.to_json, value get(labels) end
type()
click to toggle source
# File lib/gremlin/instruments/gauge.rb, line 11 def type :gauge end