# Monitoring & Alerting

Kestra will deploy a monitoring endpoint on port 8081 by default. (You can change this port with
configuration options endpoints:.all.port)

This monitoring endpoint will expose some helpful routes in order to monitor Kestra:

# Prometheus

If you have any Prometheus (opens new window) monitoring systems, Kestra exposes this endpoint /prometheus

# Kestra metrics

Kestra expose some internal metrics allowing to add some alert. Each one declare many timeseries with tags allowing
to track at least namespace & flow. But also some others tags depending on available tasks.

Also each task type can expose custom metrics that will be exposed on Prometheus.

# Worker

Metrics Type Description
worker.running.count GAUGE Task actually running
worker.started.count COUNTER Count of tasks started
worker.retryed.count COUNTER Count of tasks retried
worker.ended.count COUNTER Count of tasks ended
worker.ended.duration TIMER Duration of tasks ended

# Executor

Metrics Type Description
executor.taskrun.next.count COUNTER Count of tasks found
executor.taskrun.ended.count COUNTER Count of tasks ended
executor.taskrun.ended.duration TOMER Duration of tasks ended
executor.workertaskresult.count COUNTER Count of task result send by worker
executor.execution.started.count COUNTER Count of executions started
executor.execution.end.count COUNTER Count of executions ended
executor.execution.duration TIMER Duration of executions ended

# Indexer

Metrics Type Description
indexer.count COUNTER Count of indexation sent to repository
indexer.duration DURATION Duration of indexation sent to repository

# Scheduler

Metrics Type Description
scheduler.trigger.count COUNTER Count of trigger found
scheduler.evaluate.running.count COUNTER Evaluation of trigger actually running (aka: number of thread used by scheduler)
scheduler.evaluate.duration TIMER Duration of evaluation of trigger

# Others metrics

It will also expose all internal metrics from :

Some additional information can be found on Micronaut documentation (opens new window)

# Grafana or Kibana

Since Elasticsearch is used to store all executions & metrics, you can easily make a dashboard with
Grafana (opens new window) or Kibana (opens new window) in order to follow your Kestra instance.

In a near future, we will provide a template dashboard as a quick start.

# Kestra endpoint

Kestra expose some internal endpoint on the management port (8081 by default), depending on servers:

  • /worker: will expose all current running task on this worker
  • /scheduler: will expose all current scheduled flows on this scheduler with next date
  • /kafkastreams: will expose all kafka stream state and aggregated store lag.
  • /kafkastreams/{clientId}/lag: will expose details lag for a clientId
  • /kafkastreams/{clientId}/metrics: will expose details metrics for a clientId

# Others micronaut default endpoint

Since Kestra is based on Micronaut (opens new window), the default micronaut endpoint (opens new window)
is enabled by default on port 8081 :

You can disabled some endpoint following micronaut configuration above.