Description
This custom metric will collect the number of entries in 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 Entries
Description: <add your own description>
Category: <add to whatevfer category you like or create a new one>
Units: Entries
Metric Type: Single Value
Frequency: 60
Timeout: 20
SQL Statement:
select COUNT(1)
from sys.dm_os_memory_cache_entries
where name='TokenAndPermUserStore'