Skip to content

Commit 103d546

Browse files
Use correct runtime units (#44)
1 parent 85f0488 commit 103d546

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/StackExchange.Metrics/Metrics/RuntimeMetricSource.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void AddGaugeCallback(string eventName, string name, string unit, string descrip
5858
}
5959

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

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

0 commit comments

Comments
 (0)