Metrics Reference

Complete reference for all Prometheus metrics exported by Varax Monitor.

Overview

Varax Monitor exports Prometheus metrics for every CronJob in your cluster. All metrics are labeled with namespace and cronjob for easy filtering and aggregation.

Metrics

MetricTypeLabelsDescription
cronjob_last_execution_statusGaugenamespace, cronjobLast execution result (1=success, 0=failure)
cronjob_last_execution_duration_secondsGaugenamespace, cronjobDuration of last execution in seconds
cronjob_execution_totalCounternamespace, cronjob, statusTotal executions (status: success or failure)
cronjob_missed_schedules_totalCounternamespace, cronjobCount of missed scheduled executions
cronjob_next_schedule_timeGaugenamespace, cronjobUnix timestamp of next expected run
cronjob_is_suspendedGaugenamespace, cronjobWhether the CronJob is suspended (1=yes, 0=no)

Labels

LabelDescription
namespaceKubernetes namespace of the CronJob
cronjobName of the CronJob resource
statusExecution result — success or failure (only on cronjob_execution_total)

Example PromQL Queries

Currently failing CronJobs:

cronjob_last_execution_status == 0

Failure rate over the last 24 hours:

sum(increase(cronjob_execution_total{status="failure"}[24h])) by (cronjob, namespace)

Top 5 slowest CronJobs:

topk(5, cronjob_last_execution_duration_seconds)

CronJobs that missed schedules in the last hour:

increase(cronjob_missed_schedules_total[1h]) > 0

All suspended CronJobs:

cronjob_is_suspended == 1

Success rate per CronJob:

sum(rate(cronjob_execution_total{status="success"}[7d])) by (cronjob)
/
sum(rate(cronjob_execution_total[7d])) by (cronjob)

Relationship to kube-state-metrics

Varax Monitor complements kube-state-metrics — it doesn’t replace it. kube-state-metrics provides general Kubernetes object state (pod counts, deployment replicas, etc.). Varax Monitor adds CronJob-specific execution tracking that kube-state-metrics doesn’t cover: execution duration, missed schedules, and per-run success/failure tracking.

You can run both side by side with no conflicts.