private FSOpDurations() { registry = new MetricsRegistry(RecordInfo); registry.Tag(RecordInfo, "FSOpDurations"); MetricsSystem ms = DefaultMetricsSystem.Instance(); if (ms != null) { ms.Register(RecordInfo.Name(), RecordInfo.Description(), this); } }
private static void RegisterMetrics() { registry = new MetricsRegistry(RecordInfo); registry.Tag(RecordInfo, "ResourceManager"); MetricsSystem ms = DefaultMetricsSystem.Instance(); if (ms != null) { ms.Register("ClusterMetrics", "Metrics for the Yarn Cluster", Instance); } }
public DataNodeMetrics(string name, string sessionId, int[] intervals, JvmMetrics jvmMetrics) { // RamDisk metrics on read/write // RamDisk metrics on eviction // RamDisk metrics on lazy persist this.name = name; this.jvmMetrics = jvmMetrics; registry.Tag(MsInfo.SessionId, sessionId); int len = intervals.Length; packetAckRoundTripTimeNanosQuantiles = new MutableQuantiles[len]; flushNanosQuantiles = new MutableQuantiles[len]; fsyncNanosQuantiles = new MutableQuantiles[len]; sendDataPacketBlockedOnNetworkNanosQuantiles = new MutableQuantiles[len]; sendDataPacketTransferNanosQuantiles = new MutableQuantiles[len]; ramDiskBlocksEvictionWindowMsQuantiles = new MutableQuantiles[len]; ramDiskBlocksLazyPersistWindowMsQuantiles = new MutableQuantiles[len]; for (int i = 0; i < len; i++) { int interval = intervals[i]; packetAckRoundTripTimeNanosQuantiles[i] = registry.NewQuantiles("packetAckRoundTripTimeNanos" + interval + "s", "Packet Ack RTT in ns", "ops", "latency", interval); flushNanosQuantiles[i] = registry.NewQuantiles("flushNanos" + interval + "s", "Disk flush latency in ns" , "ops", "latency", interval); fsyncNanosQuantiles[i] = registry.NewQuantiles("fsyncNanos" + interval + "s", "Disk fsync latency in ns" , "ops", "latency", interval); sendDataPacketBlockedOnNetworkNanosQuantiles[i] = registry.NewQuantiles("sendDataPacketBlockedOnNetworkNanos" + interval + "s", "Time blocked on network while sending a packet in ns", "ops" , "latency", interval); sendDataPacketTransferNanosQuantiles[i] = registry.NewQuantiles("sendDataPacketTransferNanos" + interval + "s", "Time reading from disk and writing to network while sending " + "a packet in ns", "ops", "latency", interval); ramDiskBlocksEvictionWindowMsQuantiles[i] = registry.NewQuantiles("ramDiskBlocksEvictionWindows" + interval + "s", "Time between the RamDisk block write and eviction in ms", "ops" , "latency", interval); ramDiskBlocksLazyPersistWindowMsQuantiles[i] = registry.NewQuantiles("ramDiskBlocksLazyPersistWindows" + interval + "s", "Time between the RamDisk block write and disk persist in ms" , "ops", "latency", interval); } }
internal NameNodeMetrics(string processName, string sessionId, int[] intervals, JvmMetrics jvmMetrics) { this.jvmMetrics = jvmMetrics; registry.Tag(MsInfo.ProcessName, processName).Tag(MsInfo.SessionId, sessionId); int len = intervals.Length; syncsQuantiles = new MutableQuantiles[len]; blockReportQuantiles = new MutableQuantiles[len]; cacheReportQuantiles = new MutableQuantiles[len]; for (int i = 0; i < len; i++) { int interval = intervals[i]; syncsQuantiles[i] = registry.NewQuantiles("syncs" + interval + "s", "Journal syncs" , "ops", "latency", interval); blockReportQuantiles[i] = registry.NewQuantiles("blockReport" + interval + "s", "Block report" , "ops", "latency", interval); cacheReportQuantiles[i] = registry.NewQuantiles("cacheReport" + interval + "s", "Cache report" , "ops", "latency", interval); } }
public Nfs3Metrics(string name, string sessionId, int[] intervals, JvmMetrics jvmMetrics ) { // All mutable rates are in nanoseconds // No metric for nullProcedure; this.name = name; this.jvmMetrics = jvmMetrics; registry.Tag(MsInfo.SessionId, sessionId); int len = intervals.Length; readNanosQuantiles = new MutableQuantiles[len]; writeNanosQuantiles = new MutableQuantiles[len]; commitNanosQuantiles = new MutableQuantiles[len]; for (int i = 0; i < len; i++) { int interval = intervals[i]; readNanosQuantiles[i] = registry.NewQuantiles("readProcessNanos" + interval + "s" , "Read process in ns", "ops", "latency", interval); writeNanosQuantiles[i] = registry.NewQuantiles("writeProcessNanos" + interval + "s" , "Write process in ns", "ops", "latency", interval); commitNanosQuantiles[i] = registry.NewQuantiles("commitProcessNanos" + interval + "s", "Commit process in ns", "ops", "latency", interval); } }
Tag(MetricsInfo info, string value) { registry.Tag(info, value); return(this); }