Skip to content

Make oban metrics buckets configurable#274

Open
szajbus wants to merge 1 commit intoakoutmos:masterfrom
knowtrex:master
Open

Make oban metrics buckets configurable#274
szajbus wants to merge 1 commit intoakoutmos:masterfrom
knowtrex:master

Conversation

@szajbus
Copy link

@szajbus szajbus commented Sep 23, 2025

Change description

What problem does this solve?

Defaults for histogram buckets rarely fit every app. This change allows to configure them.

Example usage

def plugins do
  [
    ...
    {PromEx.Plugins.Oban, oban_supervisors: [Oban], job_duration_buckets: [10, 100, 500, 1_000, 5_000, 10_000, 20_000]}
  ]
end

Checklist

  • I have added unit tests to cover my changes.
  • I have added documentation to cover my changes.
  • My changes have passed unit tests and have been tested E2E in an example project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant