Description
This custom metric will collect the size of the Token and Perm User Store. For more information about this metric, here is a blog article from Microsoft.
Metric Definition
To create the custom metric, click on Options > Custom Resource Metrics and configure the metric similar to this:
Database Versions: <no limitations>
Display Name: Token Perm Size (MB)
Description: <add your own description>
Category: <add to whatevfer category you like or create a new one>
Units: MB
Metric Type: Single Value
Frequency: 60
Timeout: 20
SQL Statement:
SELECT SUM(single_pages_kb + multi_pages_kb)/1024.0
FROM sys.dm_os_memory_clerks
WHERE name = 'TokenAndPermUserStore'