Metrics
A metric is a named figure with a stored history, such as Patch compliance or Estate size. The history gives each metric a trend line and a change since last month. Metrics appear as tiles on the Metric Trends tab of the Executive Summary.
Each metric reads its figure from a saved query, the same way a KPI tile does.
Menu Path
The metric menus are in Admin > Metrics. Members of the ADMINS and CONFIG user groups see them.
| Menu item | Opens |
|---|---|
| Metrics | The list of metrics, to add, change or switch off |
| Metric Summary | The latest figure of each metric, with the change since the previous snapshot and since last month |
| Take Metric Snapshots Now | Queues the Metric Snapshot job |

Metric Snapshots
The Metric Snapshot job stores one figure per metric for the day. The job runs in these cases:
- After each Load Now that runs as a batch job, as the last step of the load.
- When you choose Take Metric Snapshots Now.
- On its schedule. The schedule is switched off to begin with. Switch it on in Admin > Transformations > Scheduled Transformations.
Running it twice on one day replaces that day's figures. When a metric fails, the other metrics are still stored. The failed day is a gap in the trend. The metric's Last Status Detail gives the reason.
xAssets keeps daily figures for 13 months. Older months become one figure per month: the last daily figure, with the lowest, the highest and the average.
Metric Fields
Open Admin > Metrics > Metrics and select a metric.

| Field | Description |
|---|---|
| Metric | The name on the tile. It must be unique. |
| Description | What the figure counts |
| Owner | The person responsible for the figure |
| Query | The saved query the figure comes from |
| Filter (XQL) | Optional. A filter on the query, written as in the search bar, such as Updated = 'Last 30 days' |
| Measure | KPI: the query's tile figure. COUNT: the number of rows the query lists. PERCENT: the rows that match Filter (XQL) as a share of the rows of Out of Query |
| Out of Query | For PERCENT, the query that gives the whole. Leave it empty to use Query |
| Out of Filter (XQL) | For PERCENT, a filter on Out of Query |
| Unit | The unit after the value, such as % or computers |
| Better When | UP when a higher figure is better, DOWN when a lower one is. Leave it empty to switch off the colors |
| Target | The target shown on the tile |
| Amber At and Red At | The thresholds. With UP, a figure below the threshold is past it. With DOWN, a figure above it is |
| Thresholds As % Of Metric | The name of another metric. Target, Amber At and Red At are then percentages of that metric's latest figure |
| Also By | Optional. Location, CostCentre or Department, to store a figure for each of them as well |
| Verified | Marks the figure as a trusted one. The tile shows a check mark |
| Active | Clear it to leave the metric out of the job |
| Sort Order | The order of the tiles |
| Last Snapshot, Last Status, Last Status Detail | Written by the job |
For example, Devices not seen in 30 days has Thresholds As % Of Metric set to Estate size, Amber At 5 and Red At 10. On a site with 768 assets the tile turns amber above 38 devices. It turns red above 77.
Metrics on Other Dashboards
Add a menu item that displays the Metric Summary query, with Display As set to the KPI view. Give it the Display Type Query or Chart and put it in a dashboard cell. It draws one tile for each active metric.
Related Articles
- KPI Configuration -- KPI tiles from a query
- Executive Summary -- the Metric Trends tab
- Batch Jobs -- following a queued job