lib/gruf/prometheus/hook.rb
##
# Handle proper shutdown of the prometheus server
#
Handle proper shutdown of the prometheus server
Handle proper shutdown of the prometheus server
def after_server_stop(*)
        stop_collectors
        prometheus_server.stop
      rescue StandardError => e
        logger.error "[gruf-prometheus][#{::Gruf::Prometheus.process_name}] Failed to stop gruf instrumentation - #{e.message} - #{e.backtrace[0..4].join("\n")}"
      end
def after_server_stop ( * ) stop_collectors prometheus_server . stop rescue StandardError => e logger . error "[gruf-prometheus][#{::Gruf::Prometheus.process_name}] Failed to stop gruf instrumentation - #{e.message} - #{e.backtrace[0..4].join("\n")}" end
Handle proper shutdown of the prometheus server
Handle proper shutdown of the prometheus server