Skip to main content
Version: 31.1.1

Metrics

These are the all metrics provided by the a9s Backup Monit component.

Description

General Metrics

Metric IdTypeDescription
healthInteger (1 = unhealthy / 0 = healthy)Returns the a9s Backup Monit status. If the value is 1, a9s Backup Monit is running and its API is reachable.
skipped_metricsIntegerCounts how many instances the a9s Backup Monit failed to get all metrics for. a9s Backup Monit iterates over all service instances known to the a9s Backup Manager. Something could go wrong when fetching the metrics for a service instance, and in this case the metric counter will by increased by one. A high value of skipped_metrics indicates an underlying issue and might need further investigation.

Format:

backup_monit.health
backup_monit.skipped_metrics

Service Instance Metrics

Metric IdTypeDescription
backup_methodString (splitted_files or single_file)Backup method. There are two options: the splitted_files method will store the backup in one or more files, while the single_file method will store the backup in one single file.
backup_dateInteger (timestamp)(DEPRECATED: replaced with last_backup_time_store) Backup creation date. This time is the last modified date of the backup files inside the store. It can differ slightly from last_backup_time.
minutes_since_last_backupInteger (minutes)(DEPRECATED) Amount of minutes since the last backup has been created. This number will be calculated like backup_date.
content_lengthInteger (kB)Size of the backup. The size is calculated by summing up the size of all files in the backup store belonging to the current backup.
content_length_from_metadataInteger (kB)Size of the backup. The value is taken from the metadata file of the current backup.
file_countIntegerNumber of files that comprise the backup.
last_backup_timeInteger (timestamp)Backup creation date of the latest known backup. This value is the date the a9s Backup Manager updated the backup status for the last time. The value can differ slightly from backup_date.
last_backup_statusStringLast backup status known to a9s Backup Manager. Can be queued, running, done, failed, deleted.
last_successful_backup_size_managerIntegerSize of the last successful backup known to the a9s Backup Manager. This value is only updated when the latest backup has the state done. In any other case the value will not be touched.
last_successful_backup_time_managerInteger (timestamp)The creation date of the last successful backup know to the a9s Backup Manager. This value is only updated when the latest backup has the state done. In any other case the value will not be touched.
last_backup_time_storeInteger (timestamp)The creation date known by the storage where the backup is saved. To get this time the Backup Monit asks the corresponding storage for the last modification time of the backup. It can differ slightly from last_backup_time.
error_fetching_metricsInteger (1 = error happend / 0 = no error happend)Returns if an error happened. If so the metrics could be invalid.

Format:

*.backup_monit.*.backup_method
*.backup_monit.*.backup_date
*.backup_monit.*.minutes_since_last_backup
*.backup_monit.*.content_length
*.backup_monit.*.content_length_from_metadata
*.backup_monit.*.file_count
*.backup_monit.*.last_backup_time
*.backup_monit.*.last_backup_status
*.backup_monit.*.last_successful_backup_size_manager
*.backup_monit.*.last_successful_backup_time_manager
*.backup_monit.*.last_backup_time_store
*.backup_monit.*.error_fetching_metrics

Metric Path

The path for the metrics has the structure <cf_service_guid>.backup_monit.<bosh_deployment_name>.<metric_name>.

KeyDescription
cf_service_guidThe GUID that Cloud Foundry assigns. Can be found with cf service <service_name> --guid
bosh_deployment_nameThe name of the deployment inside bosh
metric_nameName of the metric (See table Service Instance Metrics)

a9s-pg

a9s-pg is not deployed through an a9s Service Broker. The postgresql-backup-endpoint is in place to enable the creation of backups via the a9s Backup Manager.

As a result the bosh_deployment_name is used for cf_service_guid. Therefore the metric path is a9s-pg.backup_monit.a9s-pg.*.