<PackageReference Include="Microsoft.ApplicationInsights" Version="2.22.0" />

Microsoft.ApplicationInsights.Metrics.Extensibility.MetricExtensions

public static class MetricExtensions
There are some APIs on Metric that we hide from Intellisense by making them internal until the ...Extensibility namespace is imported. This class exposes them.
public static MetricConfiguration GetConfiguration(this Metric metric)

Exposes the Configuration property for users who imported the Microsoft.ApplicationInsights.Metrics.Extensibility namespace.