Class BuiltInMetrics
The metrics every Typhon server can publish (W25), at reserved indices 0–31 under the reserved typhon. prefix. Durations travel in milliseconds as
f16: microseconds would overflow a half at 65 ms.
public static class BuiltInMetrics
- Inheritance
-
BuiltInMetrics
- Inherited Members
Fields
ArchetypeEntities
Entities per replicated archetype; its labels are the archetype names, in index order.
public const string ArchetypeEntities = "typhon.archetype.entities"
Field Value
FramesSkipped
Frames skipped since the server started, one value per cause in FramesSkippedLabels order. Cumulative.
public const string FramesSkipped = "typhon.frames.skipped"
Field Value
FramesSkippedLabels
The labels of FramesSkipped: why the engine denied a session a frame — the degrade gate, an acknowledgement past the lag bound, both
frame slots in flight, a frame over the wire cap, a frame pool that would not lend, a backlog repaired by a RESET. Fixed, append only.
public static readonly string[] FramesSkippedLabels
Field Value
- string[]
SessionsClosed
Sessions closed since the server started, one value per reason in SessionsClosedLabels order. Cumulative.
public const string SessionsClosed = "typhon.sessions.closed"
Field Value
SessionsClosedLabels
The labels of SessionsClosed: the engine's close reasons by their numeric value, so label k is reason k. Fixed, append only.
public static readonly string[] SessionsClosedLabels
Field Value
- string[]
SystemMean
Per-system mean duration; its labels are the system names, in schedule order.
public const string SystemMean = "typhon.system.mean"
Field Value
TickMax
The longest tick of the last emission window (one second). typhon.tick.p99 is a percentile over ten seconds; over one it was this maximum
under a percentile's name.
public const string TickMax = "typhon.tick.max"
Field Value
Properties
Count
The number of built-in metrics defined today.
public static int Count { get; }
Property Value
Methods
Create(int, string[])
Builds the definition of the built-in metric at idx.
public static CatalogMetric Create(int idx, string[] labels = null)
Parameters
idxintThe reserved index, in [0, Count).
labelsstring[]The labels, for a labelled built-in — SystemMean, ArchetypeEntities, SessionsClosed and FramesSkipped; otherwise null.
Returns
- CatalogMetric
The metric definition.
HasShape(int, CatalogMetric)
Whether metric is shaped exactly as Create(int, string[]) builds the built-in at idx.
public static bool HasShape(int idx, CatalogMetric metric)
Parameters
idxintThe built-in's reserved index.
metricCatalogMetricA metric carrying that built-in's name.
Returns
ReservedIdx(string)
The reserved index of a built-in metric, or −1 when name is not one.
public static int ReservedIdx(string name)
Parameters
namestringThe metric name.
Returns
- int
The reserved index, or −1.