Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2322: [ADP-454] Runtime metrics r=hasufell a=hasufell ADP-454 <details> <summary>Teaser Prometheus</summary> ``` $ curl http://localhost:13798/metrics cardano_wallet_metrics_Stat_rtpriority_int 0 cardano_wallet_metrics_Stat_itrealvalue_int 0 rts_gc_par_max_bytes_copied 0 cardano_wallet_metrics_IO_syscr_int 54 cardano_wallet_metrics_Stat_minflt_int 1441 cardano_wallet_metrics_RTS_maxCompactBytes_B 0 cardano_wallet_metrics_Stat_cminflt_int 0 cardano_wallet_metrics_RTS_gcCopiedBytes_B 47608 rts_gc_num_gcs 221 cardano_wallet_metrics_Stat_enddata_int 29771744 cardano_wallet_metrics_Net_IpExt:OutOctets_B 1377542865 cardano_wallet_metrics_Stat_priority_int 20 cardano_wallet_metrics_IO_wchar_B 83 cardano_wallet_metrics_Stat_rsslim_int -1 cardano_wallet_metrics_RTS_cpuNs_ns 1920962 cardano_wallet_metrics_Stat_envend_int 140726935355228 cardano_wallet_metrics_Stat_pid_int 12809 cardano_wallet_metrics_Stat_ttynr_int 34823 cardano_wallet_metrics_Stat_startcode_int 4194304 rts_gc_mutator_wall_ms 9575 cardano_wallet_metrics_Stat_sigignore_int 0 rts_gc_gc_cpu_ms 105 cardano_wallet_metrics_Stat_cputicks_int 0 rts_gc_par_avg_bytes_copied 0 cardano_wallet_metrics_Stat_sigcatch_int 528390 cardano_wallet_metrics_Stat_majflt_int 0 cardano_wallet_metrics_Stat_cnswap_int 0 cardano_wallet_metrics_Stat_utime_int 0 cardano_wallet_metrics_Stat_blocked_int 0 cardano_wallet_metrics_Stat_cmajflt_int 0 rts_gc_init_cpu_ms 0 cardano_wallet_metrics_Stat_wchan_int 0 cardano_wallet_metrics_Stat_argend_int 140726935350409 cardano_wallet_metrics_IO_wbytes_B 0 cardano_wallet_metrics_Stat_startbrk_int 34394112 cardano_wallet_metrics_Stat_kstkeip_int 0 cardano_wallet_metrics_Stat_numthreads_int 6 cardano_wallet_metrics_Stat_session_int 26622 cardano_wallet_metrics_Stat_tpgid_int 12809 cardano_wallet_metrics_Mem_shared_int 5451 cardano_wallet_metrics_RTS_elapsedNs_ns 301678938 rts_gc_bytes_allocated 230364424 rts_gc_num_bytes_usage_samples 15 cardano_wallet_metrics_Mem_resident_int 6365 rts_gc_current_bytes_slop 227408 cardano_wallet_metrics_Stat_kstkesp_int 0 cardano_wallet_metrics_RTS_maxUsedMemBytes_B 2097152 cardano_wallet_metrics_Stat_argstart_int 140726935349989 cardano_wallet_metrics_Sys_Platform_int 1 rts_gc_max_bytes_slop 313624 cardano_wallet_metrics_IO_rchar_B 11062 rts_gc_par_tot_bytes_copied 0 cardano_wallet_metrics_Stat_flags_int 1077952512 cardano_wallet_metrics_Mem_data_int 11577 cardano_wallet_metrics_Stat_endcode_int 27238048 cardano_wallet_metrics_Mem_text_int 5626 cardano_wallet_metrics_RTS_gcElapsedNs_ns 82336 rts_gc_cumulative_bytes_used 68159136 cardano_wallet_metrics_Stat_rss_int 6365 cardano_wallet_metrics_Mem_size_int 268523351 ekg_server_timestamp_ms 1605554789360 cardano_wallet_metrics_Stat_cstime_int 0 cardano_wallet_metrics_RTS_maxLiveBytes_B 0 cardano_wallet_metrics_Stat_exitcode_int 0 cardano_wallet_metrics_Stat_guesttime_int 0 cardano_wallet_metrics_RTS_gcLiveBytes_B 133704 cardano_wallet_metrics_Stat_ppid_int 26622 rts_gc_gc_wall_ms 105 cardano_wallet_metrics_Stat_envstart_int 140726935350409 cardano_wallet_metrics_Stat_pgrp_int 12809 cardano_wallet_metrics_RTS_gcNum_int 1 rts_gc_mutator_cpu_ms 160 cardano_wallet_metrics_Stat_starttime_int 38375463 rts_gc_peak_megabytes_allocated 17 cardano_wallet_metrics_Stat_policy_int 0 cardano_wallet_metrics_Stat_startdata_int 27245632 cardano_wallet_metrics_IO_cxwbytes_B 0 cardano_wallet_metrics_Stat_vsize_int 1099871645696 cardano_wallet_metrics_RTS_maxSlopBytes_B 0 rts_gc_init_wall_ms 0 cardano_wallet_metrics_Stat_cutime_int 0 cardano_wallet_metrics_Net_IpExt:InOctets_B 12129589852 rts_gc_max_bytes_used 7362280 cardano_wallet_metrics_Stat_nswap_int 0 rts_gc_bytes_copied 27291728 cardano_wallet_metrics_Stat_blkio_int 0 cardano_wallet_metrics_IO_rbytes_B 0 cardano_wallet_metrics_Stat_startstack_int 140726935348176 cardano_wallet_metrics_RTS_maxLargeBytes_B 0 cardano_wallet_metrics_Stat_cguesttime_int 0 cardano_wallet_metrics_RTS_gcMajorNum_int 0 cardano_wallet_metrics_Sys_Pid_int 12809 rts_gc_wall_ms 9681 cardano_wallet_metrics_RTS_bytesAllocated_B 1129192 rts_gc_current_bytes_used 5765040 cardano_wallet_metrics_RTS_gcCpuNs_ns 82551 cardano_wallet_metrics_Stat_stime_int 0 cardano_wallet_metrics_Stat_signal_int 0 rts_gc_cpu_ms 266 cardano_wallet_metrics_Stat_exitsignal_int 17 cardano_wallet_metrics_Stat_processor_int 5 cardano_wallet_metrics_RTS_liveBytes_B 0 cardano_wallet_metrics_Stat_nice_int 0 cardano_wallet_metrics_IO_syscw_int 11 ``` </details> <details> <summary>Teaser EKG</summary> ``` curl -H "Accept: application/json" http://localhost:13788/ | jq . ``` ```json { "iohk-monitoring version": { "type": "l", "val": "0.1.10.1" }, "ekg": { "server_timestamp_ms": { "type": "c", "val": 1605553522731 } }, "rts": { "gc": { "gc_cpu_ms": { "type": "c", "val": 124 }, "mutator_wall_ms": { "type": "c", "val": 12178 }, "mutator_cpu_ms": { "type": "c", "val": 598 }, "gc_wall_ms": { "type": "c", "val": 118 }, "wall_ms": { "type": "c", "val": 12296 }, "bytes_copied": { "type": "c", "val": 60092216 }, "init_wall_ms": { "type": "c", "val": 0 }, "init_cpu_ms": { "type": "c", "val": 0 }, "max_bytes_used": { "type": "g", "val": 26806536 }, "max_bytes_slop": { "type": "g", "val": 1001208 }, "num_bytes_usage_samples": { "type": "c", "val": 12 }, "peak_megabytes_allocated": { "type": "g", "val": 40 }, "cpu_ms": { "type": "c", "val": 723 }, "current_bytes_used": { "type": "g", "val": 23334656 }, "bytes_allocated": { "type": "c", "val": 529295488 }, "par_max_bytes_copied": { "type": "g", "val": 0 }, "current_bytes_slop": { "type": "g", "val": 758016 }, "cumulative_bytes_used": { "type": "c", "val": 122968880 }, "num_gcs": { "type": "c", "val": 503 }, "par_tot_bytes_copied": { "type": "g", "val": 0 }, "par_avg_bytes_copied": { "type": "g", "val": 0 } } }, "cardano-wallet": { "wallet-engine": { "type": "l", "val": "\"\\\"9914f38a: local tip: 46f10b60<-[b40aa5a2-11184306#2045091]\\\"\"" }, "pools-engine": { "type": "l", "val": "\"\\\"Applying blocks [11184306 ... 11184306]\\\"\"" }, "metrics": { "Net": { "IpExt:InOctets": { "B": { "type": "g", "val": 12110694532 } }, "IpExt:OutOctets": { "B": { "type": "g", "val": 1374876709 } } }, "Mem": { "size": { "int": { "type": "g", "val": 268523646 } }, "text": { "int": { "type": "g", "val": 5901 } }, "data": { "int": { "type": "g", "val": 12365 } }, "resident": { "int": { "type": "g", "val": 7752 } }, "shared": { "int": { "type": "g", "val": 6347 } } }, "IO": { "rchar": { "B": { "type": "g", "val": 11062 } }, "syscw": { "int": { "type": "g", "val": 21 } }, "rbytes": { "B": { "type": "g", "val": 0 } }, "wchar": { "B": { "type": "g", "val": 93 } }, "cxwbytes": { "B": { "type": "g", "val": 0 } }, "syscr": { "int": { "type": "g", "val": 54 } }, "wbytes": { "B": { "type": "g", "val": 0 } } }, "Sys": { "Platform": { "int": { "type": "g", "val": 1 } }, "Pid": { "int": { "type": "g", "val": 7172 } } }, "Stat": { "minflt": { "int": { "type": "g", "val": 2009 } }, "rtpriority": { "int": { "type": "g", "val": 0 } }, "flags": { "int": { "type": "g", "val": 1077952512 } }, "endcode": { "int": { "type": "g", "val": 28361072 } }, "envend": { "int": { "type": "g", "val": 140736416722780 } }, "rsslim": { "int": { "type": "g", "val": -1 } }, "rss": { "int": { "type": "g", "val": 7752 } }, "priority": { "int": { "type": "g", "val": 20 } }, "guesttime": { "int": { "type": "g", "val": 0 } }, "starttime": { "int": { "type": "g", "val": 38248539 } }, "cnswap": { "int": { "type": "g", "val": 0 } }, "sigcatch": { "int": { "type": "g", "val": 544774 } }, "startdata": { "int": { "type": "g", "val": 28367904 } }, "majflt": { "int": { "type": "g", "val": 0 } }, "cputicks": { "int": { "type": "g", "val": 2 } }, "numthreads": { "int": { "type": "g", "val": 6 } }, "blkio": { "int": { "type": "g", "val": 0 } }, "nswap": { "int": { "type": "g", "val": 0 } }, "vsize": { "int": { "type": "g", "val": 1099872854016 } }, "argend": { "int": { "type": "g", "val": 140736416717961 } }, "startbrk": { "int": { "type": "g", "val": 53985280 } }, "stime": { "int": { "type": "g", "val": 0 } }, "processor": { "int": { "type": "g", "val": 7 } }, "argstart": { "int": { "type": "g", "val": 140736416717541 } }, "itrealvalue": { "int": { "type": "g", "val": 0 } }, "cminflt": { "int": { "type": "g", "val": 0 } }, "enddata": { "int": { "type": "g", "val": 30976544 } }, "ppid": { "int": { "type": "g", "val": 26622 } }, "sigignore": { "int": { "type": "g", "val": 0 } }, "startcode": { "int": { "type": "g", "val": 4194304 } }, "envstart": { "int": { "type": "g", "val": 140736416717961 } }, "cstime": { "int": { "type": "g", "val": 0 } }, "pgrp": { "int": { "type": "g", "val": 7172 } }, "exitcode": { "int": { "type": "g", "val": 0 } }, "pid": { "int": { "type": "g", "val": 7172 } }, "ttynr": { "int": { "type": "g", "val": 34823 } }, "policy": { "int": { "type": "g", "val": 0 } }, "utime": { "int": { "type": "g", "val": 2 } }, "blocked": { "int": { "type": "g", "val": 0 } }, "cmajflt": { "int": { "type": "g", "val": 0 } }, "cutime": { "int": { "type": "g", "val": 0 } }, "wchan": { "int": { "type": "g", "val": 0 } }, "kstkeip": { "int": { "type": "g", "val": 0 } }, "startstack": { "int": { "type": "g", "val": 140736416715888 } }, "session": { "int": { "type": "g", "val": 26622 } }, "exitsignal": { "int": { "type": "g", "val": 17 } }, "tpgid": { "int": { "type": "g", "val": 7172 } }, "cguesttime": { "int": { "type": "g", "val": 0 } }, "signal": { "int": { "type": "g", "val": 0 } }, "kstkesp": { "int": { "type": "g", "val": 0 } }, "nice": { "int": { "type": "g", "val": 0 } } }, "RTS": { "maxUsedMemBytes": { "B": { "type": "g", "val": 2097152 } }, "gcCpuNs": { "ns": { "type": "g", "val": 128700 } }, "maxCompactBytes": { "B": { "type": "g", "val": 0 } }, "maxLargeBytes": { "B": { "type": "g", "val": 0 } }, "bytesAllocated": { "B": { "type": "g", "val": 1129192 } }, "cpuNs": { "ns": { "type": "g", "val": 3184072 } }, "gcMajorNum": { "int": { "type": "g", "val": 0 } }, "gcCopiedBytes": { "B": { "type": "g", "val": 47608 } }, "elapsedNs": { "ns": { "type": "g", "val": 302668800 } }, "liveBytes": { "B": { "type": "g", "val": 0 } }, "gcNum": { "int": { "type": "g", "val": 1 } }, "maxSlopBytes": { "B": { "type": "g", "val": 0 } }, "gcElapsedNs": { "ns": { "type": "g", "val": 128435 } }, "maxLiveBytes": { "B": { "type": "g", "val": 0 } }, "gcLiveBytes": { "B": { "type": "g", "val": 133704 } } } }, "application": { "type": "l", "val": "\"\\\"Node is Haskell Node on testnet (1097911063).\\\"\"" }, "main": { "type": "l", "val": "\"\\\"Wallet backend server listening on 127.0.0.1:8090\\\"\"" }, "ntp-client": { "type": "l", "val": "\"\\\"local clock is drifting by -3214\\206\\188s\\\"\"" }, "network": { "type": "l", "val": "\"\\\"Query GetUpdateInterfaceState took 0.001308712s\\\"\"" }, "pools-db": { "type": "l", "val": "\"\\\"Will open db at ../cardano-node/run/wallet-state-test/stake-pools.sqlite\\\"\"" }, "wallet-db": { "type": "l", "val": "\"\\\"rnd_state_address table does not contain required field 'account_ix'. Adding this field with a default value of 2147483648.\\\"\"" } } } ``` </details> Co-authored-by: Julian Ospald <[email protected]>
- Loading branch information