Skip to content

Commit

Permalink
Update InstrumentNames.cs (#8602)
Browse files Browse the repository at this point in the history
* Update InstrumentNames.cs

Typo

* Update LinuxEnvironmentStatistics.cs
  • Loading branch information
IEvangelist authored Sep 1, 2023
1 parent 8666e23 commit 317d1a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Orleans.Core/Diagnostics/Metrics/InstrumentNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,6 @@ internal static class InstrumentNames
public const string STREAMS_QUEUE_CACHE_UNDER_PRESSURE = "orleans-streams-queue-cache-under-pressure";
public const string STREAMS_QUEUE_CACHE_PRESSURE_CONTRIBUTION_COUNT = "orleans-streams-queue-cache-pressure-contribution-count";

public const string RUNTIME_MEMORY_TOTAL_PHSYSICAL_MEMORY_MB = "orleans-runtime-total-phsyical-memory";
public const string RUNTIME_MEMORY_TOTAL_PHYSICAL_MEMORY_MB = "orleans-runtime-total-physical-memory";
public const string RUNTIME_MEMORY_AVAILABLE_MEMORY_MB = "orleans-runtime-available-memory";
}
2 changes: 1 addition & 1 deletion src/Orleans.Core/Statistics/LinuxEnvironmentStatistics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ internal class LinuxEnvironmentStatistics : IHostEnvironmentStatistics, ILifecyc
public LinuxEnvironmentStatistics(ILoggerFactory loggerFactory)
{
_logger = loggerFactory.CreateLogger<LinuxEnvironmentStatistics>();
_totalPhysicalMemoryCounter = Instruments.Meter.CreateObservableCounter<long>(InstrumentNames.RUNTIME_MEMORY_TOTAL_PHSYSICAL_MEMORY_MB, () => (long)(TotalPhysicalMemory / KB / KB), unit: "MB");
_totalPhysicalMemoryCounter = Instruments.Meter.CreateObservableCounter<long>(InstrumentNames.RUNTIME_MEMORY_TOTAL_PHYSICAL_MEMORY_MB, () => (long)(TotalPhysicalMemory / KB / KB), unit: "MB");
_availableMemoryCounter = Instruments.Meter.CreateObservableCounter<long>(InstrumentNames.RUNTIME_MEMORY_AVAILABLE_MEMORY_MB, () => (long)(AvailableMemory / KB / KB), unit: "MB");
}

Expand Down

0 comments on commit 317d1a3

Please sign in to comment.