Write a DQL query that uses the relevant Grail metric key.
Because there isn't an exact, one-to-one mapping between Classic metric selectors and DQL queries, some queries will require manual adjustments during the conversion.
Metric key reference
The following tables list Classic technology runtime metric keys and their Grail equivalents, organized by mapping type. Select the section that matches your technology.
For more information about metric mapping, see New concepts.
Divergent metrics
Because Grail metrics are technology-specific, there's no direct relation between Metrics Classic and Grail metrics. You need to choose a technology-dedicated metric in Grail.
Example equivalent Classic metric selector and DQL query
The following Classic metric selector and DQL query return equivalent results.
The following Metrics Classic metrics for memory pool and garbage collection are JVM-based.
You need to choose the relevant Java, Node.js, or .NET metric in Grail.
Classic metric key
Grail metric keys
builtin:tech.jvm.memory.gc.collectionTime
dt.runtime.jvm.gc.total_collection_time
dt.runtime.clr.gc.collection_time
dt.runtime.go.gc.collection_time
builtin:tech.jvm.memory.pool.collectionTime
dt.runtime.jvm.gc.collection_time
dt.runtime.nodejs.gc.collection_time
builtin:tech.jvm.memory.gc.suspensionTime
dt.runtime.jvm.gc.suspension_time
dt.runtime.clr.gc.suspension_time
dt.runtime.go.gc.suspension_time
dt.runtime.nodejs.gc.suspension_time
Web server metrics
The following Classic metrics for web servers hold values for different technologies.
You need to choose the dedicated Apache, IIS, or NGINX metric in Grail.