Skip to content

How to quiet access logs? #34

@stevefolly

Description

@stevefolly

How can I turn off request logging from the plugin's Rack app? I don't particularly need to see ... GET /metrics ... every minute in my Rails logs.

It took me a while to work out standard Puma config in config/puma.rb to quiet requests wasn't having any effect because the plugin creates its own Rack app!

I managed to prove it works by editing yabeda_prometheus.rb and adding log_writer: Puma::LogWriter.null as an argument to Puma::Server.new. Is that the best way, or is there another, less intrusive way to do this?

Would you accept a PR to make this configurable from config/puma.rb?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions