I have application insight running with a "pay as you go" model. Standard performance metrics show up in the portal. Custom metrics don't show up in the metrics section.
My Environment. A custom .NET core console app running plain TCP sockets. (no ASP.NET CORE) using
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.7.2" />
The Telemetry class is constructed with the default constructor ( and no XML config file)
The custom metrics are created like
Telemetry.Client.GetMetric("number of clients").TrackValue(600.0);
Question: What do i miss or doing wrong, that the custom metrics don't show up? Is the "metrics" section in the azure portal the wrong place to look for custom metrics?
Update
The sample code also doesn't upload any custom metrics to azure.
TelemetryClient client = new TelemetryClient();
client.InstrumentationKey = "a valid key";
client.GetMetric("test me").TrackValue(200);
client.Flush();
Thread.Sleep(5000);
key
andval
? – Roman MarusykTelemetryClient.TrackMetric(string, double)
for custom metrics? Or is this some other way I don't about? :D – juunas