ultralan has quit [Remote host closed the connection]
sagax has quit [Ping timeout: 256 seconds]
matoro has quit [Read error: Connection reset by peer]
matoro has joined #ruby
desnudopenguino has joined #ruby
CrazyEddy has quit [Quit: Reconnecting]
eam has quit [Ping timeout: 256 seconds]
eam has joined #ruby
user71 has joined #ruby
eddof13 has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 268 seconds]
desnudopenguino1 is now known as desnudopenguino
jaredce has quit [Ping timeout: 252 seconds]
jaredce has joined #ruby
eddof13 has quit [Quit: eddof13]
nickname123 has joined #ruby
<nickname123>
matoro
<nickname123>
ruby[bot]
<nickname123>
sldlkds
<nickname123>
slsdls
<nickname123>
s
<nickname123>
s
<nickname123>
s
<nickname123>
s
<nickname123>
s
<nickname123>
s
<nickname123>
s
<nickname123>
s
<nickname123>
s
<nickname123>
ss
<nickname123>
s
<nickname123>
ss
<nickname123>
s
<nickname123>
s
<nickname123>
s
<nickname123>
s
<nickname123>
love ruby
nickname123 has quit [Client Quit]
eddof13 has joined #ruby
sagax has joined #ruby
TomyWork has joined #ruby
<TomyWork>
I have a tiny sinatra app. I want to expose some metrics about the web server, failed requests and such, to prometheus. is there anything that does that for me without a lot of setup?
rvalue has quit [Read error: Connection reset by peer]
<havenwood>
Middleware can be a nice way to keep your Sinatra app tiny.
rvalue has joined #ruby
<TomyWork>
i just run the app with ./app.rb, so idk how to add a middleware
<TomyWork>
but i'll figure it out
<adam12>
TomyWork: `use <some middleware class` essentially, if you're using the classic Sinatra style app
<adam12>
Middleware is the right solution likely. I think Prometheus will scrape an HTTP endpoint so you'll need the metrics in the interface suitable for that.
CrazyEddy has joined #ruby
TomyWork has quit [Remote host closed the connection]