lib/vmpooler/metrics/promstats.rb
# Note - Catch and log metrics failures so they can be noted, but don't interrupt vmpooler operation.
Catch and log metrics failures so they can be noted, but don't interrupt vmpooler operation.
Catch and log metrics failures so they can be noted but don ' t interrupt vmpooler operation .
def increment(label)
        begin
          counter_metric, c = get(label)
          c.increment(labels: counter_metric[:labels])
        rescue StandardError => e
          @logger.log('s', "[!] prometheus error logging metric #{label} increment : #{e}")
        end
      end
def increment ( label ) begin counter_metric , c = get ( label ) c . increment ( labels : counter_metric [ :labels ] ) rescue StandardError => e @logger . log ( 's' , "[!] prometheus error logging metric #{label} increment : #{e}" ) end end
Note - Catch and log metrics failures so they can be noted, but don't interrupt vmpooler operation.
Note - Catch and log metrics failures so they can be noted but don ' t interrupt vmpooler operation .
label