Open ollym opened 2 years ago
I got this to work:
Prometheus::Client::Push.new(
job: ENV.fetch('PROMETHEUS_JOB_NAME', 'yabeda'),
gateway: ENV['PROMETHEUS_PUSH_GATEWAY'],
open_timeout: 5,
read_timeout: 5
).add(Yabeda::Prometheus::Mmap.registry)
Yabeda::Prometheus.push_gateway.add(Yabeda::Prometheus.registry)
doesn't work with this gem