Dashboards Trigger

Dashboards Trigger

Certified

Trigger execution on Lightdash dashboard update

Periodically polls Lightdash for dashboards that have been created or modified in a project, using the namespace KV store to advance an update timestamp watermark for exactly-once firing.

yaml
type: io.kestra.plugin.lightdash.dashboards.Trigger

Trigger a flow whenever a dashboard is modified in Lightdash

yaml
id: on_dashboard_updated
namespace: company.analytics

triggers:
  - id: watch_dashboards
    type: io.kestra.plugin.lightdash.dashboards.Trigger
    url: "https://app.lightdash.cloud"
    apiToken: "{{ secret('LIGHTDASH_API_TOKEN') }}"
    projectUuid: "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d"
    interval: PT1M

tasks:
  - id: notify
    type: io.kestra.plugin.core.log.Log
    message: "Dashboard updated: {{ trigger.dashboards[0].name }} (UUID: {{ trigger.dashboards[0].uuid }})"
Installation

Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:

kestractl plugins get io.kestra.plugin:plugin-lightdash --compatible-for $KESTRA_VERSION

For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.

Properties

Lightdash Personal Access Token (API Key)

The Personal Access Token generated from your Lightdash personal settings. Passed via the Authorization: ApiKey <token> header.

Project UUID

The UUID of the Lightdash project to monitor for dashboard updates.

Defaultfalse

Specifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.

DefaultPT1M
Formatduration

Polling interval

The interval between consecutive polls for dashboard modifications. Defaults to PT1M (1 minute). Must be positive.

DefaultPT30S

HTTP request timeout

The timeout duration for HTTP requests made to the Lightdash API. Defaults to PT30S (30 seconds). Must be positive.

SubTypestring
Possible Values
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTED

List of execution states after which a trigger should be stopped (a.k.a. disabled).

Defaulthttps://app.lightdash.cloud

Lightdash instance base URL

The base URL of your Lightdash instance, e.g. https://app.lightdash.cloud. Can be provided with or without a trailing slash or /api/v1 path.

Defaulttrue

A condition that determines whether the trigger should run.

A Pebble expression evaluated at trigger time. The trigger fires only when the expression evaluates to a truthy value (true, a non-empty string, a non-zero number). Use this to gate trigger execution on dynamic runtime values such as execution labels, flow variables, or environment conditions.

The count of modified dashboards detected.

The list of all modified dashboards detected in this polling window.

Definitions
descriptionstring

The description of the dashboard.

namestring

The name of the dashboard.

spaceNamestring

The name of the space containing this dashboard.

spaceUuidstring

The UUID of the space containing this dashboard.

updatedAtstring
Formatdate-time

Timestamp when the dashboard was last updated.

uuidstring

The UUID of the dashboard.