Files
diun/docs/config/watch.md
2020-10-14 19:53:44 +02:00

1.8 KiB

Watch configuration

Overview

watch:
  workers: 10
  schedule: "0 */6 * * *"
  firstCheckNotif: false
  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)

!!! example "Config file" yaml watch: workers: 10

!!! abstract "Environment variables" * DIUN_WATCH_WORKERS

schedule

CRON expression to schedule Diun watcher. (default 0 * * * *)

!!! example "Config file" yaml watch: schedule: "0 */6 * * *"

!!! abstract "Environment variables" * DIUN_WATCH_SCHEDULE

firstCheckNotif

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

!!! example "Config file" yaml watch: firstCheckNotif: false

!!! abstract "Environment variables" * DIUN_WATCH_FIRSTCHECKNOTIF

healthchecks

Healthchecks allows to monitor 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.

!!! example "Config file" yaml watch: healthchecks: baseURL: https://hc-ping.com/ uuid: 5bf66975-d4c7-4bf5-bcc8-b8d8a82ea278

!!! abstract "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).