Skip to main content
APA
Sponsored by CAST AI — Kubernetes cost optimization Better Stack — Uptime monitoring and log management
⚠️

Alert thresholds depend on the nature of your applications. Some queries may have arbitrary tolerance thresholds. Building an efficient monitoring platform takes time. 😉

Sidekiq Prometheus Alert Rules

2 Prometheus alerting rules for Sidekiq. Exported via Strech/sidekiq-prometheus-exporter. These rules cover critical and warning conditions — copy and paste the YAML into your Prometheus configuration.

wget https://raw.githubusercontent.com/samber/awesome-prometheus-alerts/refs/heads/master/dist/rules/sidekiq/strech-sidekiq-exporter.yml
warning

5.6.1. Sidekiq queue size

Sidekiq queue {{ $labels.name }} is growing ({{ $value }} enqueued jobs)

- alert: SidekiqQueueSize
  expr: sidekiq_queue_enqueued_jobs > 100
  for: 1m
  labels:
    severity: warning
  annotations:
    summary: Sidekiq queue size (instance {{ $labels.instance }})
    description: "Sidekiq queue {{ $labels.name }} is growing ({{ $value }} enqueued jobs)\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
critical

5.6.2. Sidekiq scheduling latency too high

Sidekiq jobs are taking more than 1min to be picked up. Users may be seeing delays in background processing.

- alert: SidekiqSchedulingLatencyTooHigh
  expr: max(sidekiq_queue_latency_seconds) > 60
  for: 0m
  labels:
    severity: critical
  annotations:
    summary: Sidekiq scheduling latency too high (instance {{ $labels.instance }})
    description: "Sidekiq jobs are taking more than 1min to be picked up. Users may be seeing delays in background processing.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"