Monitor Aerospike Backup Service
For the complete documentation index see: llms.txt
All documentation pages available in markdown.
This page describes how to monitor Aerospike Backup Service (ABS) with Prometheus metrics, REST job status, logs, and health probes. ABS exposes Prometheus metrics on its HTTP or HTTPS listen port.
To try Prometheus and Grafana with ABS locally, see Quickstart.
Overview
| Signal | What it answers | Where |
|---|---|---|
| Prometheus metrics | Did backups and restores succeed over time? How long did they take? | /metrics on the listen port |
| REST job status | What is running right now? | GET /v1/backups/currentBackup/{routine}, GET /v1/restore/status/{jobId} |
| Logs | Why was a job skipped, canceled, or failed? | journalctl, container logs |
| Probes | Is the ABS process up? | /health, /ready |
By default, metrics are available at http://<ABS_HOST>:8080/metrics.
Change the port and API prefix with service.http.port and service.http.context-path.
If only HTTPS is enabled, scrape https://<ABS_HOST>:8443/metrics or the port in service.https.port.
See service.
What to monitor first
Start with these golden signals. Add more after the first alerts are quiet.
| Question | Metric or probe | Alert first? |
|---|---|---|
| Is a scheduled full backup overdue? | aerospike_backup_service_last_successful_backup_timestamp{type="full"} | Yes |
| Did a backup fail? | aerospike_backup_service_backup_events_total{outcome="failure"} | Yes |
| Did a restore fail? | aerospike_backup_service_restore_events_total{outcome="failure"} | Yes |
| Are jobs being skipped in a storm? | aerospike_backup_service_backup_events_total{outcome="skip"} | Optional |
| Is a job stuck in progress? | aerospike_backup_service_backup_in_progress, aerospike_backup_service_backup_progress_pct | After duration budget |
| How long do finished jobs take? | aerospike_backup_service_backup_duration_seconds | Capacity planning |
| Is a restore running? | aerospike_backup_service_restore_in_progress | Dashboard |
| Is the host saturated? | process and Go runtime metrics | Capacity, not correctness |
The progress metric is the aerospike_backup_service_backup_progress_pct gauge.
pipeline is a REST currentBackup field, not a Prometheus metric.
See Performance tuning.
Scrape ABS with Prometheus
ABS exposes metrics directly on its listen port. You do not need a dedicated Prometheus exporter.
global: scrape_interval: 15s
scrape_configs: - job_name: 'aerospike-backup-service' static_configs: - targets: ['abs-service:8080']Replace abs-service:8080 with your ABS host and port.
For HTTPS-only, set scheme: https on the scrape job and use the HTTPS port.
If the HTTPS listener sets client-auth: require-and-verify, Prometheus needs a client certificate to scrape /metrics.
Set cert_file and key_file under tls_config on the scrape job.
See HTTPS listener.
Kubernetes probes
/health and /ready are process liveness only. They do not check storage or the Database cluster.
livenessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 10 periodSeconds: 10readinessProbe: httpGet: path: /ready port: 8080 initialDelaySeconds: 5 periodSeconds: 5If HTTP is disabled, probe the HTTPS port and set scheme: HTTPS:
livenessProbe: httpGet: path: /health port: 8443 scheme: HTTPSA healthy process returns HTTP 200 and the body Ok.
With client-auth: require-and-verify, the HTTPS listener rejects connections that lack a client certificate, and kubelet HTTP probes can’t send one.
In that case, use a tcpSocket probe on the HTTPS port instead of httpGet.
Grafana dashboard
A pre-built Grafana dashboard (ID 21375) visualizes ABS metrics.
Typical panels:
- Backup success, failure, skip, retry, and cancel event rates
- Backup duration for full and incremental jobs
- Backup progress percentage while a job runs
- Restore events and restore-in-progress
- Time since last successful backup
Import dashboard 21375 and point it at the Prometheus data source that scrapes ABS. Set the time range to cover recent jobs. For a local walkthrough, see Quickstart.
Backup and restore job model
Backup counters use labels routine, type (full or incremental), and outcome.
Restore counters use outcome.
Histograms and duration series record finished runs only.
Backup cancellation outcomes
aerospike_backup_service_backup_events_total{outcome="canceled"} increases when a backup is canceled.
- If a user explicitly cancels a backup (see Cancel all jobs for a backup routine), this increase is expected. Disabling a routine with
PUT /v1/config/routines/{name}/disablestops future scheduled runs and cancels a backup that is already running, sooutcome="canceled"increments. Settingdisabled: truein the configuration file or withPUT /v1/configstops future scheduled runs but leaves a running backup alone. - If the service shuts down gracefully during a running backup, logs can report the backup as canceled, but Prometheus may miss the final increment if it cannot scrape before shutdown completes.
Backup skip outcomes
Under some conditions, ABS skips a scheduled or on-demand backup.
Common reasons include:
- A full backup of the same routine is already running.
- An incremental backup of the same routine is already running and
concurrent-incrementalisfalse. - A full backup is running and
concurrent-incrementalisfalse. - A full backup is scheduled at the same time as the incremental backup and
concurrent-incrementalisfalse. - No full backup has completed successfully yet for the routine.
ABS increments aerospike_backup_service_backup_events_total{outcome="skip"} when a scheduled or on-demand backup is skipped.
The backup does not run.
No backup artifacts are written.
aerospike_backup_service_backup_duration_seconds does not record a duration for that attempt.
ABS logs a message such as full backup skipped or incremental backup skipped with an error field describing the reason.
ABS does not queue a skipped backup. The routine runs again at its next scheduled time. See What happens when a backup doesn’t finish before another starts?.
Incremental backups with no data changes
When an incremental backup runs but no records changed since the previous backup, ABS still completes successfully.
Prometheus records aerospike_backup_service_backup_events_total{outcome="success"} for the run.
Because no records were backed up for a namespace, ABS does not write metadata.yaml for that namespace for that run.
In a routine with multiple namespaces, ABS still writes metadata.yaml for any namespace that did have changes.
The run does not create a new incremental backup artifact in the backup destination for namespaces with no changes.
Use aerospike_backup_service_backup_events_total{outcome="success"} to confirm that scheduled incremental jobs executed.
Use aerospike_backup_service_last_successful_backup_timestamp{type="full"} or storage listings to track the backup baseline when incremental runs are frequently empty.
Application metrics
PromQL by question
Prefer increase() or rate() for counters.
A bare sum(..._total) grows forever and is a weak dashboard query.
Is a full backup overdue?
time() - aerospike_backup_service_last_successful_backup_timestamp{routine="daily-ns1", type="full"}How many backup failures in the last 15 minutes?
increase(aerospike_backup_service_backup_events_total{outcome="failure"}[15m]) > 0oraerospike_backup_service_backup_events_total{outcome="failure"}unlessaerospike_backup_service_backup_events_total{outcome="failure"} offset 15mAfter every ABS restart, each counter series appears at its first increment, already at 1, so increase() reports 0 for the first event of each routine and type.
The second part of the query matches series that exist now but did not exist 15 minutes ago, which catches that first failure.
What is the skip rate?
sum by (routine, type) (rate(aerospike_backup_service_backup_events_total{outcome="skip"}[15m]))Are retries increasing?
sum by (routine) (increase(aerospike_backup_service_backup_events_total{outcome="retry"}[15m]))Is a backup stuck in progress?
aerospike_backup_service_backup_in_progress == 1Pair with aerospike_backup_service_backup_progress_pct and job duration from logs or currentBackup.
Did restores fail?
increase(aerospike_backup_service_restore_events_total{outcome="failure"}[15m]) > 0oraerospike_backup_service_restore_events_total{outcome="failure"}unlessaerospike_backup_service_restore_events_total{outcome="failure"} offset 15mRestore failures are rare, so the first failure after an ABS restart is often the only one. Use the second part of the query to catch it.
Average backup duration (finished jobs):
rate(aerospike_backup_service_backup_duration_seconds_sum[1d])/rate(aerospike_backup_service_backup_duration_seconds_count[1d])The query returns no data unless a backup finished inside the window.
Use a window at least as long as the schedule interval, such as 1d for a daily full backup.
Empty incremental successes may not advance the incremental timestamp series. See Incremental backups with no data changes.
Example alerts
-
Detect backup job failures recorded within the last 15 minutes. The second part of
exprcatches the first failure after an ABS restart. See PromQL by question.- alert: BackupJobFailureDetectedexpr: |increase(aerospike_backup_service_backup_events_total{outcome="failure"}[15m]) > 0oraerospike_backup_service_backup_events_total{outcome="failure"}unlessaerospike_backup_service_backup_events_total{outcome="failure"} offset 15mfor: 0mlabels:severity: warningannotations:summary: "Backup job failure detected"description: "A backup failure was detected in the last 15 minutes for routine {{ $labels.routine }}." -
Detect a restore failure.
- alert: RestoreJobFailureDetectedexpr: |increase(aerospike_backup_service_restore_events_total{outcome="failure"}[15m]) > 0oraerospike_backup_service_restore_events_total{outcome="failure"}unlessaerospike_backup_service_restore_events_total{outcome="failure"} offset 15mfor: 0mlabels:severity: warningannotations:summary: "Restore job failure detected"description: "A restore failure was detected in the last 15 minutes." -
Detect a full backup that is older than the schedule interval plus the expected backup duration. The timestamp is the start time of the last successful backup, and it updates only after the run finishes. A threshold equal to the interval would fire every day while the next full backup runs. This example assumes a daily full backup that takes up to 2 hours, so the threshold is 93600 seconds (26 hours). Filter to
type="full"so empty incrementals do not hide a missing full backup.- alert: BackupTooOldexpr: time() - aerospike_backup_service_last_successful_backup_timestamp{routine="daily-ns1", type="full"} > 93600for: 0mlabels:severity: criticalannotations:summary: "Full backup is older than 26 hours"description: "The last successful full backup for routine daily-ns1 was more than 26 hours ago." -
Optional: skip storm (many skips, which often means overlap or a missing first full backup).
- alert: BackupSkipStormexpr: sum by (routine) (increase(aerospike_backup_service_backup_events_total{outcome="skip"}[15m])) > 5for: 0mlabels:severity: warningannotations:summary: "Backup skip storm"description: "Routine {{ $labels.routine }} skipped more than five backups in 15 minutes."
Investigate with logs and the REST API
When a backup is missed, stuck, or failed, use metrics first, then logs, then REST.
-
Confirm the outcome in Prometheus (
failure,skip,canceled, or a stalelast_successful_backup_timestamp). -
Read ABS logs for
backup skipped, query errors, or storage errors:Terminal window journalctl -u aerospike-backup-service -n 200 --no-pagerIn Docker:
docker logs aerospike-backup-service.ABS does not log HTTP request bodies. Literal secrets are redacted in structured logs. Use metrics and the job APIs for forensics. See Secure ABS.
-
Check the live job:
Terminal window curl -s BASE_URL/v1/backups/currentBackup/ROUTINE_NAMEcurl -s BASE_URL/v1/restore/status/JOB_ID
For request and response bodies, see API usage examples.
Process and Go runtime metrics
ABS also exposes standard process and Go runtime metrics on /metrics.
Use them to detect resource saturation, not backup correctness.
Example queries:
rate(process_cpu_seconds_total[5m]) * 100: 100 means one full CPU core. Compare spikes withaerospike_backup_service_backup_progress_pctto see which routine is running.process_resident_memory_bytes / 1024 / 1024 / 1024: RSS in GiB. Alert around 80% of the memory limit.
For collector details, see the Prometheus Go collectors documentation.
HTTP endpoints
See the Kubernetes probe documentation and Prometheus documentation.
Deprecated metrics
The following metrics are deprecated as of ABS 3.2.0.
Use aerospike_backup_service_backup_events_total, aerospike_backup_service_backup_duration_seconds, and aerospike_backup_service_last_successful_backup_timestamp instead.