Skip to content

Watch configuration

Overview

watch:
  workers: 10
  schedule: "0 */6 * * *"
  firstCheckNotif: false
  compareDigest: true
  healthchecks:
    baseURL: https://hc-ping.com/
    uuid: 5bf66975-d4c7-4bf5-bcc8-b8d8a82ea278

Configuration

workers

Maximum number of workers that will execute tasks concurrently. (default 10)

Config file

watch:
  workers: 10

Environment variables

  • DIUN_WATCH_WORKERS

schedule

CRON expression to schedule Diun.

Warning

Remove this setting if you want to run Diun directly.

Config file

watch:
  schedule: "0 */6 * * *"

Environment variables

  • DIUN_WATCH_SCHEDULE

firstCheckNotif

Send notification at the very first analysis of an image. (default false)

Config file

watch:
  firstCheckNotif: false

Environment variables

  • DIUN_WATCH_FIRSTCHECKNOTIF

compareDigest

Compare the digest of an image with the registry before downloading the image manifest. It is strongly recommended leaving this value at true, especially with Docker Hub which imposes a rate-limit on image pull. (default true)

Config file

watch:
  compareDigest: true

Environment variables

  • DIUN_WATCH_COMPAREDIGEST

healthchecks

Healthchecks allows monitoring Diun watcher by sending start and success notification events to healthchecks.io.

Tip

A Docker image for Healthchecks is available if you want to self-host your instance.

Config file

watch:
  healthchecks:
    baseURL: https://hc-ping.com/
    uuid: 5bf66975-d4c7-4bf5-bcc8-b8d8a82ea278

Environment variables

  • DIUN_WATCH_HEALTHCHECKS_BASEURL
  • DIUN_WATCH_HEALTHCHECKS_UUID
  • baseURL: Base URL for the Healthchecks Ping API (default https://hc-ping.com/).
  • uuid: UUID of an existing healthcheck (required).

Last update: 2021-05-26 16:18:10
Created: 2020-06-19 22:47:17