Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/StackExchange.Metrics/Metrics/RuntimeMetricSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void AddGaugeCallback(string eventName, string name, string unit, string descrip
}

AddGaugeCallback("cpu-usage", "dotnet.cpu.usage", "percent", "% CPU usage");
AddGaugeCallback("working-set", "dotnet.mem.working_set", "bytes", "Working set for the process");
AddGaugeCallback("working-set", "dotnet.mem.working_set", "megabytes", "Working set for the process");

// GC
AddCounterCallback("gen-0-gc-count", "dotnet.mem.collections.gen0", "collections", "Number of gen-0 collections");
Expand All @@ -67,7 +67,7 @@ void AddGaugeCallback(string eventName, string name, string unit, string descrip
AddGaugeCallback("gen-0-size", "dotnet.mem.size.gen0", "bytes", "Total number of bytes in gen-0");
AddGaugeCallback("gen-1-size", "dotnet.mem.size.gen1", "bytes", "Total number of bytes in gen-1");
AddGaugeCallback("gen-2-size", "dotnet.mem.size.gen2", "bytes", "Total number of bytes in gen-2");
AddGaugeCallback("gc-heap-size", "dotnet.mem.size.heap", "bytes", "Total number of bytes across all heaps");
AddGaugeCallback("gc-heap-size", "dotnet.mem.size.heap", "megabytes", "Total number of bytes across all heaps");
AddGaugeCallback("loh-size", "dotnet.mem.size.loh", "bytes", "Total number of bytes in the LOH");
AddCounterCallback("alloc-rate", "dotnet.mem.allocation_rate", "bytes/sec", "Allocation Rate (Bytes / sec)");

Expand Down