Track oban failures
This commit is contained in:
parent
8f58eb4a18
commit
0995fa1410
1 changed files with 12 additions and 1 deletions
|
@ -72,7 +72,7 @@ def metrics do
|
||||||
summary("vm.total_run_queue_lengths.cpu"),
|
summary("vm.total_run_queue_lengths.cpu"),
|
||||||
summary("vm.total_run_queue_lengths.io"),
|
summary("vm.total_run_queue_lengths.io"),
|
||||||
distribution(
|
distribution(
|
||||||
"oban.job.stop",
|
"oban_job_completion",
|
||||||
event_name: [:oban, :job, :stop],
|
event_name: [:oban, :job, :stop],
|
||||||
measurement: :duration,
|
measurement: :duration,
|
||||||
tags: [:worker],
|
tags: [:worker],
|
||||||
|
@ -81,6 +81,17 @@ def metrics do
|
||||||
reporter_options: [
|
reporter_options: [
|
||||||
buckets: [0.01, 0.025, 0.05, 0.1, 0.2, 0.5, 1, 2.5, 5, 10]
|
buckets: [0.01, 0.025, 0.05, 0.1, 0.2, 0.5, 1, 2.5, 5, 10]
|
||||||
]
|
]
|
||||||
|
),
|
||||||
|
distribution(
|
||||||
|
"oban_job_exception",
|
||||||
|
event_name: [:oban, :job, :exception],
|
||||||
|
measurement: :duration,
|
||||||
|
tags: [:worker],
|
||||||
|
tag_values: fn tags -> Map.put(tags, :worker, tags.job.worker) end,
|
||||||
|
unit: {:native, :second},
|
||||||
|
reporter_options: [
|
||||||
|
buckets: [0.01, 0.025, 0.05, 0.1, 0.2, 0.5, 1, 2.5, 5, 10]
|
||||||
|
]
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue