ABS Monitoring
For the complete documentation index see: llms.txt
All documentation pages available in markdown.
This page describes how Aerospike Backup Service (ABS) exposes system metrics that Prometheus can scrape.
Prometheus configuration
ABS exposes metrics directly on its HTTP port, so you don’t need a dedicated Prometheus exporter.
By default, metrics are available at http://<ABS_HOST>:8080/metrics.
You can change the port with the service.http.port parameter.
The following example shows a standalone Prometheus configuration for scraping ABS metrics:
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.
Grafana dashboard
A pre-built Grafana dashboard is available for visualizing ABS metrics. The dashboard includes panels for backup success and failure rates, backup duration, and restore operations.
Metrics
ABS includes the following application metrics:
Backup cancellation outcomes
The aerospike_backup_service_backup_events_total{outcome="canceled"} series increases when a backup is canceled.
- If a user explicitly cancels a backup (using the Cancel all jobs for a backup routine endpoint) or disables the routine, this metric increase is expected.
- 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 performing a scheduled or triggered 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 ad-hoc backup is skipped.
The backup does not run, no backup artifacts are written to the backup destination, and 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.
Skipped attempts are not queued. The next scheduled backup run tries again. See What happens when a backup doesn’t finish before another starts? for scheduling overlap rules.
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.
Deprecated metrics
The following metrics are deprecated as of ABS 3.2.0, replaced by aerospike_backup_service_backup_events_total, aerospike_backup_service_backup_duration_seconds, and aerospike_backup_service_last_successful_backup_timestamp.
Use the recommended replacement metrics instead.
Click to show deprecated metrics
Example PromQL queries
Monitor and alert on backup performance with the following queries in Grafana panels or the Prometheus expression browser.
-
Number of successful full and incremental backups for a specific routine:
Terminal window sum by (type) ( aerospike_backup_service_backup_events_total{routine="daily-ns1", outcome="success"} ) -
Number of failed backups per routine:
Terminal window sum by (routine) ( aerospike_backup_service_backup_events_total{outcome="failure"} ) -
Number of canceled backups per routine:
Terminal window sum by (routine) ( aerospike_backup_service_backup_events_total{outcome="canceled"} ) -
Number of skipped backup attempts per routine and type:
Terminal window sum by (routine, type) ( aerospike_backup_service_backup_events_total{outcome="skip"} ) -
Average backup duration per routine:
Terminal window rate(aerospike_backup_service_backup_duration_seconds_sum[5m]) / rate(aerospike_backup_service_backup_duration_seconds_count[5m]) -
Time since last full backup for a routine:
Terminal window time() - aerospike_backup_service_last_successful_backup_timestamp{routine="daily-ns1", type="full"} -
Time since most recent backup for a routine regardless of backup type:
Terminal window time() - max(aerospike_backup_service_last_successful_backup_timestamp{routine="daily-ns1"})Empty incremental successes may not advance the incremental series. See Incremental backups with no data changes.
Example Prometheus alerts
Integrate ABS metrics into your Prometheus alerting pipeline to stay informed of job failures or service latencies.
-
Detect backup job failures recorded within the last 15 minutes with this alert.
- alert: BackupJobFailureDetectedexpr: increase(aerospike_backup_service_backup_events_total{outcome="failure"}[15m]) > 0for: 0mlabels:severity: warningannotations:summary: "Backup job failure detected"description: "A backup failure was detected in the last 15 minutes for routine {{ $labels.routine }}." -
Ensure backup continuity with this alert, which detects if a specific routine has failed to complete successfully within the last 24 hours.
- alert: BackupTooOldexpr: time() - max(aerospike_backup_service_last_successful_backup_timestamp{routine="daily-ns1"}) > 86400for: 0mlabels:severity: criticalannotations:summary: "Backup is older than 24 hours"description: "The last successful backup for routine daily-ns1 was more than 24 hours ago."If incremental backups for this routine are frequently empty, filter this query to
type="full"to avoid alerting on an incremental timestamp that does not advance. See Incremental backups with no data changes.
Process and Go runtime metrics
ABS also exposes standard process and Go runtime metrics on /metrics. Use them to detect resource saturation and runtime behavior changes before backup failures occur.
Prometheus query examples:
-
rate(process_cpu_seconds_total[5m]) * 100- The
process_cpu_seconds_totalcounter tracks total CPU time since the process started. This query turns that running total into a per-second average over the last 5 minutes, then multiplies by 100 to get a percentage. In this scale, 100 means one full CPU core is busy and 200 means two cores. If the result stays above your expected core budget for several minutes, compare the spike withaerospike_backup_service_backup_progress_pctto identify which routine is running. To reduce CPU usage, stagger routine schedules so fewer backups overlap, or increase the CPU resources allocated to the ABS instance.
- The
-
process_resident_memory_bytes / 1024 / 1024 / 1024- Converts the resident memory (RSS) of the ABS process from bytes to gibibytes, which is easier to compare against any memory limits. A good practice is to alert at roughly 80% of the memory limit. If memory keeps growing, increase the container or host memory limit, or reduce the number of backup routines that run concurrently.
For details about these collectors in the Prometheus Go client, see the collectors package documentation.
Endpoints
See the official Kubernetes documentation and Prometheus documentation for more information.