1. 23 Jun, 2021 2 commits
    • Sean McGivern's avatar
      Add sidekiq_job_completion_metric_initialize feature flag · bc1c330c
      Sean McGivern authored
      This feature flag controls the initialisation of the
      sidekiq_jobs_completion_seconds bucket when a Sidekiq server process
      starts. By default it is on, but we can disable it (and restart Sidekiq)
      if there is an issue.
      bc1c330c
    • Sean McGivern's avatar
      Initialise sidekiq_jobs_completion_seconds before running jobs · d84fe983
      Sean McGivern authored
      When a worker runs for the first time, it will have
      sidekiq_jobs_completion_seconds_count set to 1 (because it was just
      completed). But this is wrong in Prometheus terms, because there was no
      previous value of 0, and so the rate of change will also be 0.
      
      To work around this, we initialise this bucket for all workers that can
      be run by the current Sidekiq process before processing the first job.
      This way we can calculate rates correctly for infrequent workers.
      d84fe983
  2. 22 Jun, 2021 38 commits