lib/gruf/prometheus/hook.rb
##
# Start collectors for the gRPC process
#
Start collectors for the gRPC process
Start collectors for the gRPC process
def start_collectors(server:)
        ::PrometheusExporter::Instrumentation::Process.start(
          type: ::Gruf::Prometheus.process_label,
          client: ::Bigcommerce::Prometheus.client,
          frequency: ::Gruf::Prometheus.collection_frequency
        )
        ::Gruf::Prometheus::Collector.start(
          options: {
            server: server
          },
          type: 'grpc',
          client: ::Bigcommerce::Prometheus.client,
          frequency: ::Gruf::Prometheus.collection_frequency
        )
        custom_collectors.each do |collector, arguments|
          collector.start(arguments)
        end
      end
def start_collectors ( server : ) :: PrometheusExporter :: Instrumentation :: Process . start ( type : :: Gruf :: Prometheus . process_label , client : :: Bigcommerce :: Prometheus . client , frequency : :: Gruf :: Prometheus . collection_frequency ) :: Gruf :: Prometheus :: Collector . start ( options : { server : server } , type : 'grpc' , client : :: Bigcommerce :: Prometheus . client , frequency : :: Gruf :: Prometheus . collection_frequency ) custom_collectors . each do | collector , arguments | collector . start ( arguments ) end end
Start collectors for the gRPC process
Start collectors for the gRPC process
server
<not_specific>