Exported Prometheus Metrics
This appendix section describes the various metrics along with tags and values that are provided with Trilio for Kubernetes.
Metrics
This page describes the metrics provided by the Trilio Metrics Exporter that can be consumed by Prometheus.
You will find detailed information about the tags and values associated with each metric along with examples of the output you will see from each metric.
trilio_backupplan_info description: this metric provide detail about BackupPlan CRD tags: applicationtype, backup_count, backupplan, cluster, creation_ts, lastprotected, namespace, protected, status, target value: 1 (Available/Completed) or 0 (InProgress) or -1 (Failed/Error)
# HELP trilio_backupplan_info BackupPlan Info
# TYPE trilio_backupplan_info gauge
trilio_backupplan_info{applicationtype="Custom",backup_count="1",backupplan="sample-backupplan-custom",cluster="84ccb170-baa2-11ea-96c8-42010a8e0fc9",creation_ts="2020-07-06 15:08:39 +0530 IST",lastprotected="",namespace="triliovault-integration",protected="False",status="Available",target="sample-target"} 1trilio_backupplan_crstatus description: this metric provides detail about continuousRestore site status for backupPlan tags: backupplan, cluster, continuousrestore_enabled, continuousrestoreinstance, continuousrestoreplan, consistentset_count, cr_status value: 1 (Available/Completed) or 0 (InProgress) or -1 (Failed/Error)
# HELP trilio_backupplan_crstatus BackupPlan ContinuousRestore Info
# TYPE trilio_backupplan_crstatus gauge
trilio_backupplan_crstatus{backupplan="appbackupplan1",cluster="kops-gocoverage",consistentset_count="1",continuousrestore_enabled="true",continuousrestoreinstance="930936bc-cc93-488d-a21c-3306499da0ae",continuousrestoreplan="crp-d303bb96-fd9e-4bd1-b909-c2313a37fbe9-0e62ae31-29ec-45cb-8aa4-8ee1b5878438",cr_status="Available",kind="BackupPlan"} 1trilio_continuousrestoreplan_info description: this metric provide detail about ContinuousRestorePlan CRD tags: consistentset count, continuousrestore plan, continuousrestore policy, creation timestamp, install namespace, kind, source backupplan, source instanceinfo,cluster, status, target value: 1 (Available/Completed) or 0 (InProgress) or -1 (Failed/Error)
# HELP trilio_continuousrestoreplan_info ContinuousRestorePlan Info
# TYPE trilio_continuousrestoreplan_info gauge
trilio_continuousrestoreplan_info{cluster="kops-gocoverage",consistentsetcount="1",continuousrestoreplan="crp-d303bb96-fd9e-4bd1-b909-c2313a37fbe9-e63f2047-ce03-4c0d-92bf-9e446cde520e",continuousrestorepolicy="d303bb96-fd9e-4bd1-b909-c2313a37fbe9-01cec464-75dc-4426-9958-a525efb1559a",creation_ts="2023-02-21 15:56:18 +0530 IST",install_namespace="trilio-system",kind="ContinuousRestorePlan",sourcebackupplan="mulitsite-multins-s3-bp",sourceinstanceinfo="tvk-instance-src",status="Available",target="d303bb96-fd9e-4bd1-b909-c2313a37fbe9-c985b932-9d92-4ab0-b700-4f1a2712a2a7"} 1trilio_target_info description: this metric provide detail about target CRD tags: cluster, creation_ts, namespace, size, status, target, vendor, vendorType value: 1 (Available) or 0 (Unavailable)
# HELP trilio_target_info Target Info
# TYPE trilio_target_info gauge
trilio_target_info{cluster="84ccb170-baa2-11ea-96c8-42010a8e0fc9",creation_ts="2020-07-05 12:16:24 +0530 IST",namespace="triliovault-integration",size="0",status="Available",target="sample-target",vendor="Other",vendorType="NFS"} 1trilio_target_storage description: this metric provide detail about target CRD storage tags: cluster, creation_ts, namespace, status, target, vendor, vendorType value: storage in bytes
trilio_backup_info description: this metric provide detail about backup CRD tags: applicationtype, backupplan, backup, cluster, completion_ts, hook, namespace, size, start_ts, status, target value: 1 (Available/Completed) or 0 (InProgress) or -1 (Failed/Error) -2(UnKnown)\
trilio_backup_status_percentage description: this metric provide detail about backup and its percentage status tags: backupplan, backup, cluster, completion_ts, namespace, size, start_ts, status, target value: percentage status
trilio_backup_completed_duration description: this metric provide detail about backups that are in Available state with its duration taken. tags: backupplan, backup, cluster, completion_ts, namespace, start_ts, status, target value: duration in minutes
trilio_backup_storage description: this metric provide detail about backup storage. tags: backupplan, backup, cluster, completion_ts, namespace, start_ts, status, target value: size in bytes
trilio_backup_metadata_info description: this metric provide detail about backup metadata. tags: apiversion, applicationtype, backup, backupplan, cluster, namespace, objectname, objecttype, status value: count of objects
trilio_restore_info description: this metric provide detail about restore CRD. tags: backup, backupplan, cluster, completion_ts, namespace, restore, size, start_ts, status, target value: 1 (Available/Completed) or 0 (InProgress) or -1 (Failed/Error) -2(UnKnown)\
trilio_restore_status_percentage description: this metric provide detail about backup and its percentage status tags: backup, completion timestamp, cluster, namespace, restore, start timestamp, size, status, target value: status percentage
trilio_restore_completed_duration description: this metric provide detail about restore that are in Completed state with its duration taken. tags: backup, completion timestamp, cluster, namespace, restore, start timestamp, status, target value: duration in minutes
trilio_restore_metadata_info description: this metric provide detail about restore metadata. tags: apiversion, applicationtype, backupplan, cluster, namespace, objectname, objecttype, restore, status value: count of objects
trilio_consistentset_info description: this metric provide detail about ConsistentSet CRD. tags: consistentset, consistentsetscope, continuousrestoreplan, completion_ts, start_ts, size, backupName, backupNamespace, backupSize, backupStatus, sourcebackupplan, sourceinstanceinfo, cluster, install_namespace, kind, status value: 1 (Available/Completed) or 0 (InProgress) or -1 (Failed/Error) -2(UnKnown)\
trilio_consistentset_status_percentage description: this metric provide detail about ConsistentSet and its percentage status tags: consistentset, consistentset scope, continuousrestore plan, start timestamp, completion timestamp, backupName, source backupplan, source instanceinfo, cluster, install namespace, kind, status value: status percentage
trilio_consistentset_completed_duration description: this metric provide detail about consistentSet that are in Completed state with its duration taken. tags: backupName, start timestamp completion timestamp, consistentset, consistentset scope, continuousrestore plan, install namespace, kind, source backupplan, source instanceinfo, cluster, status value: duration in minutes
trilio_component_status description: this metric provide detail about all triliovault components with available replicas. tags: cluster, deployment, namespace, status(Ready State) value: available replicas count
trilio_system_info description: this metric provide details about all triliovault installation. tags: cluster, namespace, scope value: 1
Glossary
cluster
Cluster UUID string
"84ccb170-baa2-11ea-96c8-42010a8e0fc9"
namespace
Resource Namespace
"triliovault-integration"
scope
T4K Installation Scope
"Namespaced"
deployment
T4K Component Deployment Name
"k8s-triliovault-exporter"
status
Component Status code: 1 (Available/Completed) 0 (InProgress) -1 (Failed/Error) -2 (UnKnown)
"-1"
applicationtype
We divide application into three groups: Helm, Operator, Custom on basis of BackupPlan
"Helm"
backup_count
Number of backups under given BackupPlan
"2"
backupplan
Name of Backup Plan
"sample-backupplan"
creation_ts
Resource Creation TImestamp
"2020-07-07 16:58:44 +0530 IST"
start_ts
Resource Start Timestamp
"2020-07-07 16:58:44 +0530 IST"
completion_ts
Resource Completion Timestamp
"2020-07-07 16:58:44 +0530 IST"
lastprotected
Last Backup Completion Timestamp for given Backup Plan
"2020-07-07 16:58:44 +0530 IST"
protected
Provide true/false, on whether Backup Plan has any successful Backup
"True"
target
Target Name for respective Backup or Backup Plan
"sample-target"
size
Storage size in bytes
"102400"
vendor
Storage Provider Vendor
"AWS"
vendorType
Type of Storage Used
"S3"
start_ts
Resource Start Timestamp
"2020-07-07 16:58:44 +0530 IST"
hook
Backup Plan Hook Enabled or not
"False"
apiversion
GVK Version for Object under Backup/Restore Metadata
"v1"
objectname
Object Name for Resource under Backup/Restore Metadata
"nginx"
objecttype
Object Type for Resource under Backup/Restore Metadata
"Service"