Search Results for

    Show / Hide Table of Contents

    Class StandardMetrics

    Definitions of the built-in standard metrics.

    The following extractors and data structures makes it easy to consume the NodeMetrics in for example load balancers.

    Inheritance
    object
    StandardMetrics
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Cluster.Metrics
    Assembly: Akka.Cluster.Metrics.dll
    Syntax
    public static class StandardMetrics

    Fields

    | Edit this page View Source

    CpuProcessUsage

    Contains CPU usage by current process

    Declaration
    public const string CpuProcessUsage = "CpuProcessUsage"
    Field Value
    Type Description
    string
    | Edit this page View Source

    CpuTotalUsage

    Contains CPU usage by all processes

    Declaration
    public const string CpuTotalUsage = "CpuTotalUsage"
    Field Value
    Type Description
    string
    | Edit this page View Source

    MaxMemoryRecommended

    Memory limit recommended for current process (MaxWorkingSet)

    Declaration
    public const string MaxMemoryRecommended = "MaxMemoryRecommended"
    Field Value
    Type Description
    string
    | Edit this page View Source

    MemoryAvailable

    Memory, available for the process (VirtualMemorySize64)

    Declaration
    public const string MemoryAvailable = "MemoryAvailable"
    Field Value
    Type Description
    string
    | Edit this page View Source

    MemoryUsed

    Total memory allocated to the currently running process (WorkingSet64)

    Declaration
    public const string MemoryUsed = "MemoryUsed"
    Field Value
    Type Description
    string
    | Edit this page View Source

    Processors

    Number of available processors

    Declaration
    public const string Processors = "Processors"
    Field Value
    Type Description
    string

    Methods

    | Edit this page View Source

    ExtractCpu(NodeMetrics)

    Extract StandardMetrics.Cpu data from nodeMetrics, if the nodeMetrics contains necessary CPU metrics, otherwise it returns None.

    Declaration
    public static Option<StandardMetrics.Cpu> ExtractCpu(NodeMetrics nodeMetrics)
    Parameters
    Type Name Description
    NodeMetrics nodeMetrics
    Returns
    Type Description
    Option<StandardMetrics.Cpu>
    | Edit this page View Source

    ExtractMemory(NodeMetrics)

    Extract StandardMetrics.Memory data from nodeMetrics, if the nodeMetrics contains necessary memory metrics, otherwise it returns None.

    Declaration
    public static Option<StandardMetrics.Memory> ExtractMemory(NodeMetrics nodeMetrics)
    Parameters
    Type Name Description
    NodeMetrics nodeMetrics
    Returns
    Type Description
    Option<StandardMetrics.Memory>
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET