Class MetricNames
Standard metric names for consistent taxonomy across components.
public static class MetricNames
- Inheritance
-
MetricNames
- Inherited Members
Examples
writer.WriteThroughput(MetricNames.CacheHits, _cacheHits);
writer.WriteThroughput(MetricNames.CacheMisses, _cacheMisses);
writer.WriteDuration(MetricNames.Flush, _lastFlushUs, _avgFlushUs, _maxFlushUs);
Remarks
Using centralized names ensures:
- Consistent Grafana dashboard queries (e.g.,
sum(typhon_cache_hits)) - IntelliSense discoverability
- No typos across components
Use these constants with WriteThroughput(string, long) and WriteDuration(string, long, long, long) instead of string literals.
Fields
CacheHits
Number of cache hits (successful lookups).
public const string CacheHits = "CacheHits"
Field Value
CacheMisses
Number of cache misses (lookups requiring load).
public const string CacheMisses = "CacheMisses"
Field Value
CheckpointFlush
Duration of checkpoint flush operations.
public const string CheckpointFlush = "CheckpointFlush"
Field Value
CheckpointsCompleted
Number of checkpoints completed.
public const string CheckpointsCompleted = "CheckpointsCompleted"
Field Value
Commit
Duration of commit operations.
public const string Commit = "Commit"
Field Value
Committed
Number of transactions successfully committed.
public const string Committed = "Committed"
Field Value
Conflicts
Number of concurrency conflicts detected.
public const string Conflicts = "Conflicts"
Field Value
Created
Number of transactions/objects created.
public const string Created = "Created"
Field Value
Deletes
Number of entries deleted.
public const string Deletes = "Deletes"
Field Value
Evictions
Number of entries evicted from cache.
public const string Evictions = "Evictions"
Field Value
Flush
Duration of general flush operations.
public const string Flush = "Flush"
Field Value
Flushes
Number of flush operations completed.
public const string Flushes = "Flushes"
Field Value
HeartbeatsChecked
Number of heartbeat checks performed.
public const string HeartbeatsChecked = "HeartbeatsChecked"
Field Value
Inserts
Number of entries inserted.
public const string Inserts = "Inserts"
Field Value
Lookups
Number of index lookups (point queries).
public const string Lookups = "Lookups"
Field Value
Merges
Number of node merges (B+Tree compaction).
public const string Merges = "Merges"
Field Value
RangeScans
Number of range scans performed.
public const string RangeScans = "RangeScans"
Field Value
RecordsWritten
Number of WAL records written.
public const string RecordsWritten = "RecordsWritten"
Field Value
RolledBack
Number of transactions rolled back.
public const string RolledBack = "RolledBack"
Field Value
SnapshotCreation
Duration of snapshot creation.
public const string SnapshotCreation = "SnapshotCreation"
Field Value
Splits
Number of node splits (B+Tree growth).
public const string Splits = "Splits"
Field Value
TransactionLifetime
Duration of transaction lifetime (create to commit/rollback).
public const string TransactionLifetime = "TransactionLifetime"