class PrometheusExporter::LocalClient

Attributes

collector[R]

Public Class Methods

new(collector:, json_serializer: nil, custom_labels: nil) click to toggle source
Calls superclass method PrometheusExporter::Client::new
# File lib/prometheus_exporter/client.rb, line 262
def initialize(collector:, json_serializer: nil, custom_labels: nil)
  @collector = collector
  super(json_serializer: json_serializer, custom_labels: custom_labels)
end

Public Instance Methods

send(json) click to toggle source
# File lib/prometheus_exporter/client.rb, line 267
def send(json)
  @collector.process(json)
end