/ruby-sinatra-app

Example Sinatra app with Prometheus instrumentation

Primary LanguageRubyApache License 2.0Apache-2.0

Sinatra app

Example Sinatra app with Prometheus instrumentation.

Run with:

$ bundle exec rackup

The app will run at http://localhost:9292.

You can check the output of the default / route with curl:

$ curl http://localhost:9292
Hello world!

Prometheus metrics are exposed at http://localhost:9292/metrics.