# Trilio Snapshot and Backup exporter Metric Information

***

## Metrics Overview

| Metric                          | Description                         |
| ------------------------------- | ----------------------------------- |
| `mysql_trilio_snapshots_info`   | Snapshot counts grouped by state    |
| `mysql_trilio_restore_info`     | Restore metrics                     |
| `openstack_protected_vm`        | Number of protected VMs per project |
| `mysql_trilio_backup_size_info` | Snapshot storage usage in GB        |
| `mysql_trilio_snapshots_status` | Snapshot-level status information   |
| `trilio_allowed_quota_value`    | Allowed quota limits                |
| `trilio_quota_high_watermark`   | Highest observed quota usage        |
| `trilio_workload_info`          | Workload metadata                   |
| `trilio_workload_vm_info`       | VM metadata for workloads           |

***

## Metrics Details

### `mysql_trilio_snapshots_info`

Provides per-project snapshot counts grouped by snapshot state (`successful`, `failed`, `running`).

**Example**

```
mysql_trilio_snapshots_info{status="error"} 3
```

***

### `mysql_trilio_restore_info`

Provides information about restore operations.

**Example**

```
count(mysql_trilio_restore_info{status="error"})
```

***

### `openstack_protected_vm`

Shows the number of unique protected VMs per project.

**Example**

```
openstack_protected_vm{ProjectID="proj1"} 25
```

***

### `mysql_trilio_backup_size_info`

Provides aggregated snapshot storage metrics per project, normalized to **GB**.

**Example**

```
mysql_trilio_backup_size_info{ProjectID="proj1"} 450.75
```

***

### `mysql_trilio_snapshots_status`

Provides snapshot-level granularity, exposing individual snapshot identity and status.

**Example**

```
mysql_trilio_snapshots_status{ProjectID="p1",WorkloadID="w1",SnapshotID="123",SnapshotName="daily-backup",status="successful"} 1
```

***

### `trilio_allowed_quota_value`

Exposes allowed quota limits per project and quota type.

**Example**

```
trilio_allowed_quota_value{ProjectID="p1",QuotaName="Snapshots"} 100
```

***

### `trilio_quota_high_watermark`

Reports the highest observed quota usage for each quota type per project.

**Example**

```
trilio_quota_high_watermark{ProjectID="p1",QuotaName="Snapshots"} 80
```

***

### `trilio_workload_info`

Exports metadata for all workloads, including lifecycle and configuration details.

**Example**

```
trilio_workload_info{ID="123",ProjectID="p1",DisplayName="TestWorkload",Status="available"} 1
```

***

### `trilio_workload_vm_info`

Exports VM-level metadata associated with Trilio workloads.

**Example**

```
trilio_workload_vm_info{VMID="vm-123",WorkloadID="456",Status="protected"} 1
```

**Note:** The above are just a few examples for better understanding. Any other suitable examples may be used as required.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trilio.io/openstack/admin-guide/grafana-monitoring/trilio-snapshot-and-backup-exporter-metric-information.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
