| File: src\Shared\Instruments\ResourceUtilizationInstruments.cs | Web Access |
| Project: src\src\Libraries\Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization\Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization.csproj (Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma warning disable CA1716 namespace Microsoft.Shared.Instruments; #pragma warning restore CA1716 #pragma warning disable CS1574 /// <summary> /// Represents the names of instruments published by this package. /// </summary> /// <seealso cref="System.Diagnostics.Metrics.Instrument"/> internal static class ResourceUtilizationInstruments { /// <summary> /// The name of the ResourceMonitoring Meter. /// </summary> public const string MeterName = "Microsoft.Extensions.Diagnostics.ResourceMonitoring"; /// <summary> /// The name of an instrument to retrieve CPU time consumed by the specific container on all available CPU cores, measured in seconds. /// </summary> /// <remarks> /// The type of an instrument is <see cref="System.Diagnostics.Metrics.ObservableCounter{T}"/>. /// </remarks> public const string ContainerCpuTime = "container.cpu.time"; /// <summary> /// The name of an instrument to retrieve CPU limit consumption of all processes running inside a container or control group in range <c>[0, 1]</c>. /// </summary> /// <remarks> /// The type of an instrument is <see cref="System.Diagnostics.Metrics.ObservableGauge{T}"/>. /// </remarks> public const string ContainerCpuLimitUtilization = "container.cpu.limit.utilization"; /// <summary> /// The name of an instrument to retrieve CPU request consumption of all processes running inside a container or control group in range <c>[0, 1]</c>. /// </summary> /// <remarks> /// The type of an instrument is <see cref="System.Diagnostics.Metrics.ObservableGauge{T}"/>. /// </remarks> public const string ContainerCpuRequestUtilization = "container.cpu.request.utilization"; /// <summary> /// The name of an instrument to retrieve memory limit consumption of all processes running inside a container or control group in range <c>[0, 1]</c>. /// </summary> /// <remarks> /// The type of an instrument is <see cref="System.Diagnostics.Metrics.ObservableGauge{T}"/>. /// </remarks> public const string ContainerMemoryLimitUtilization = "container.memory.limit.utilization"; /// <summary> /// The name of an instrument to retrieve memory request consumption of all processes running inside a container or control group in range <c>[0, 1]</c>. /// </summary> /// <remarks> /// The type of an instrument is <see cref="System.Diagnostics.Metrics.ObservableGauge{T}"/>. /// </remarks> public const string ContainerMemoryRequestUtilization = "container.memory.request.utilization"; /// <summary> /// The name of an instrument to retrieve memory usage measured in bytes of all processes running inside a container or control group. /// </summary> /// <remarks> /// The type of an instrument is <see cref="System.Diagnostics.Metrics.ObservableUpDownCounter{T}"/>. /// </remarks> public const string ContainerMemoryUsage = "container.memory.usage"; /// <summary> /// The name of an instrument to retrieve CPU consumption share of the running process in range <c>[0, 1]</c>. /// </summary> /// <remarks> /// The type of an instrument is <see cref="System.Diagnostics.Metrics.ObservableGauge{T}"/>. /// </remarks> public const string ProcessCpuUtilization = "process.cpu.utilization"; /// <summary> /// The name of an instrument to retrieve memory consumption share of the running process in range <c>[0, 1]</c>. /// </summary> /// <remarks> /// The type of an instrument is <see cref="System.Diagnostics.Metrics.ObservableGauge{T}"/>. /// </remarks> public const string ProcessMemoryUtilization = "dotnet.process.memory.virtual.utilization"; /// <summary> /// The name of an instrument to retrieve disk bytes transferred. /// </summary> /// <remarks> /// The type of an instrument is <see cref="System.Diagnostics.Metrics.ObservableCounter{T}"/>. /// </remarks> public const string SystemDiskIo = "system.disk.io"; /// <summary> /// The name of an instrument to retrieve the time disk spent activated. /// </summary> /// <remarks> /// The type of an instrument is <see cref="System.Diagnostics.Metrics.ObservableCounter{T}"/>. /// </remarks> public const string SystemDiskIoTime = "system.disk.io_time"; /// <summary> /// The name of an instrument to retrieve disk operations. /// </summary> /// <remarks> /// The type of an instrument is <see cref="System.Diagnostics.Metrics.ObservableCounter{T}"/>. /// </remarks> public const string SystemDiskOperations = "system.disk.operations"; /// <summary> /// The name of an instrument to retrieve network connections information. /// </summary> /// <remarks> /// The type of an instrument is <see cref="System.Diagnostics.Metrics.ObservableUpDownCounter{T}"/>. /// </remarks> public const string SystemNetworkConnections = "system.network.connections"; } #pragma warning disable CS1574