Line data Source code
1 : /* THIS FILE IS GENERATED BY gen_metrics.py. DO NOT HAND EDIT. */ 2 : 3 : #include "../fd_metrics_base.h" 4 : 5 : #include "fd_metrics_net.h" 6 : #include "fd_metrics_quic.h" 7 : #include "fd_metrics_verify.h" 8 : #include "fd_metrics_dedup.h" 9 : #include "fd_metrics_resolv.h" 10 : #include "fd_metrics_pack.h" 11 : #include "fd_metrics_bank.h" 12 : #include "fd_metrics_poh.h" 13 : #include "fd_metrics_shred.h" 14 : #include "fd_metrics_store.h" 15 : /* Start of LINK OUT metrics */ 16 : 17 0 : #define FD_METRICS_COUNTER_LINK_SLOW_COUNT_OFF (0UL) 18 : #define FD_METRICS_COUNTER_LINK_SLOW_COUNT_NAME "link_slow_count" 19 : #define FD_METRICS_COUNTER_LINK_SLOW_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 20 : #define FD_METRICS_COUNTER_LINK_SLOW_COUNT_DESC "The number of times the consumer was detected as rate limiting consumer by the producer." 21 : #define FD_METRICS_COUNTER_LINK_SLOW_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 22 : 23 : /* Start of LINK IN metrics */ 24 : 25 0 : #define FD_METRICS_COUNTER_LINK_CONSUMED_COUNT_OFF (0UL) 26 : #define FD_METRICS_COUNTER_LINK_CONSUMED_COUNT_NAME "link_consumed_count" 27 : #define FD_METRICS_COUNTER_LINK_CONSUMED_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 28 : #define FD_METRICS_COUNTER_LINK_CONSUMED_COUNT_DESC "The number of times the link reader has consumed a fragment." 29 : #define FD_METRICS_COUNTER_LINK_CONSUMED_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 30 : 31 0 : #define FD_METRICS_COUNTER_LINK_CONSUMED_SIZE_BYTES_OFF (1UL) 32 : #define FD_METRICS_COUNTER_LINK_CONSUMED_SIZE_BYTES_NAME "link_consumed_size_bytes" 33 : #define FD_METRICS_COUNTER_LINK_CONSUMED_SIZE_BYTES_TYPE (FD_METRICS_TYPE_COUNTER) 34 : #define FD_METRICS_COUNTER_LINK_CONSUMED_SIZE_BYTES_DESC "The total number of bytes read by the link consumer." 35 : #define FD_METRICS_COUNTER_LINK_CONSUMED_SIZE_BYTES_CVT (FD_METRICS_CONVERTER_NONE) 36 : 37 0 : #define FD_METRICS_COUNTER_LINK_FILTERED_COUNT_OFF (2UL) 38 : #define FD_METRICS_COUNTER_LINK_FILTERED_COUNT_NAME "link_filtered_count" 39 : #define FD_METRICS_COUNTER_LINK_FILTERED_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 40 : #define FD_METRICS_COUNTER_LINK_FILTERED_COUNT_DESC "The number of fragments that were filtered and not consumed." 41 : #define FD_METRICS_COUNTER_LINK_FILTERED_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 42 : 43 0 : #define FD_METRICS_COUNTER_LINK_FILTERED_SIZE_BYTES_OFF (3UL) 44 : #define FD_METRICS_COUNTER_LINK_FILTERED_SIZE_BYTES_NAME "link_filtered_size_bytes" 45 : #define FD_METRICS_COUNTER_LINK_FILTERED_SIZE_BYTES_TYPE (FD_METRICS_TYPE_COUNTER) 46 : #define FD_METRICS_COUNTER_LINK_FILTERED_SIZE_BYTES_DESC "The total number of bytes read by the link consumer that were filtered." 47 : #define FD_METRICS_COUNTER_LINK_FILTERED_SIZE_BYTES_CVT (FD_METRICS_CONVERTER_NONE) 48 : 49 0 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_COUNT_OFF (4UL) 50 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_COUNT_NAME "link_overrun_polling_count" 51 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 52 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_COUNT_DESC "The number of times the link has been overrun while polling." 53 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 54 : 55 0 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_FRAG_COUNT_OFF (5UL) 56 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_FRAG_COUNT_NAME "link_overrun_polling_frag_count" 57 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_FRAG_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 58 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_FRAG_COUNT_DESC "The number of fragments the link has not processed because it was overrun while polling." 59 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_FRAG_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 60 : 61 0 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_COUNT_OFF (6UL) 62 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_COUNT_NAME "link_overrun_reading_count" 63 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 64 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_COUNT_DESC "The number of input overruns detected while reading metadata by the consumer." 65 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 66 : 67 0 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_FRAG_COUNT_OFF (7UL) 68 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_FRAG_COUNT_NAME "link_overrun_reading_frag_count" 69 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_FRAG_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 70 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_FRAG_COUNT_DESC "The number of fragments the link has not processed because it was overrun while reading." 71 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_FRAG_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 72 : 73 : /* Start of TILE metrics */ 74 : 75 0 : #define FD_METRICS_GAUGE_TILE_PID_OFF (0UL) 76 : #define FD_METRICS_GAUGE_TILE_PID_NAME "tile_pid" 77 : #define FD_METRICS_GAUGE_TILE_PID_TYPE (FD_METRICS_TYPE_GAUGE) 78 : #define FD_METRICS_GAUGE_TILE_PID_DESC "The process ID of the tile." 79 : #define FD_METRICS_GAUGE_TILE_PID_CVT (FD_METRICS_CONVERTER_NONE) 80 : 81 0 : #define FD_METRICS_GAUGE_TILE_TID_OFF (1UL) 82 : #define FD_METRICS_GAUGE_TILE_TID_NAME "tile_tid" 83 : #define FD_METRICS_GAUGE_TILE_TID_TYPE (FD_METRICS_TYPE_GAUGE) 84 : #define FD_METRICS_GAUGE_TILE_TID_DESC "The thread ID of the tile. Always the same as the Pid in production, but might be different in development." 85 : #define FD_METRICS_GAUGE_TILE_TID_CVT (FD_METRICS_CONVERTER_NONE) 86 : 87 0 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_INVOLUNTARY_COUNT_OFF (2UL) 88 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_INVOLUNTARY_COUNT_NAME "tile_context_switch_involuntary_count" 89 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_INVOLUNTARY_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 90 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_INVOLUNTARY_COUNT_DESC "The number of involuntary context switches." 91 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_INVOLUNTARY_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 92 : 93 0 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_VOLUNTARY_COUNT_OFF (3UL) 94 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_VOLUNTARY_COUNT_NAME "tile_context_switch_voluntary_count" 95 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_VOLUNTARY_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 96 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_VOLUNTARY_COUNT_DESC "The number of voluntary context switches." 97 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_VOLUNTARY_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 98 : 99 0 : #define FD_METRICS_GAUGE_TILE_STATUS_OFF (4UL) 100 : #define FD_METRICS_GAUGE_TILE_STATUS_NAME "tile_status" 101 : #define FD_METRICS_GAUGE_TILE_STATUS_TYPE (FD_METRICS_TYPE_GAUGE) 102 : #define FD_METRICS_GAUGE_TILE_STATUS_DESC "The current status of the tile. 0 is booting, 1 is running." 103 : #define FD_METRICS_GAUGE_TILE_STATUS_CVT (FD_METRICS_CONVERTER_NONE) 104 : 105 0 : #define FD_METRICS_GAUGE_TILE_HEARTBEAT_OFF (5UL) 106 : #define FD_METRICS_GAUGE_TILE_HEARTBEAT_NAME "tile_heartbeat" 107 : #define FD_METRICS_GAUGE_TILE_HEARTBEAT_TYPE (FD_METRICS_TYPE_GAUGE) 108 : #define FD_METRICS_GAUGE_TILE_HEARTBEAT_DESC "The last UNIX timestamp in nanoseconds that the tile heartbeated." 109 : #define FD_METRICS_GAUGE_TILE_HEARTBEAT_CVT (FD_METRICS_CONVERTER_NONE) 110 : 111 0 : #define FD_METRICS_GAUGE_TILE_IN_BACKPRESSURE_OFF (6UL) 112 : #define FD_METRICS_GAUGE_TILE_IN_BACKPRESSURE_NAME "tile_in_backpressure" 113 : #define FD_METRICS_GAUGE_TILE_IN_BACKPRESSURE_TYPE (FD_METRICS_TYPE_GAUGE) 114 : #define FD_METRICS_GAUGE_TILE_IN_BACKPRESSURE_DESC "Whether the tile is currently backpressured or not, either 1 or 0." 115 : #define FD_METRICS_GAUGE_TILE_IN_BACKPRESSURE_CVT (FD_METRICS_CONVERTER_NONE) 116 : 117 0 : #define FD_METRICS_COUNTER_TILE_BACKPRESSURE_COUNT_OFF (7UL) 118 : #define FD_METRICS_COUNTER_TILE_BACKPRESSURE_COUNT_NAME "tile_backpressure_count" 119 : #define FD_METRICS_COUNTER_TILE_BACKPRESSURE_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 120 : #define FD_METRICS_COUNTER_TILE_BACKPRESSURE_COUNT_DESC "Number of times the times the tile has had to wait for one of more consumers to catch up to resume publishing." 121 : #define FD_METRICS_COUNTER_TILE_BACKPRESSURE_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 122 : 123 0 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_OFF (8UL) 124 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_NAME "tile_regime_duration_nanos" 125 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_TYPE (FD_METRICS_TYPE_COUNTER) 126 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_DESC "Mutually exclusive and exhaustive duration of time the tile spent in each of the regimes." 127 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_CVT (FD_METRICS_CONVERTER_NONE) 128 0 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_CNT (8UL) 129 : 130 0 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_CAUGHT_UP_HOUSEKEEPING_OFF (8UL) 131 0 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_PROCESSING_HOUSEKEEPING_OFF (9UL) 132 0 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_BACKPRESSURE_HOUSEKEEPING_OFF (10UL) 133 0 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_CAUGHT_UP_PREFRAG_OFF (11UL) 134 0 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_PROCESSING_PREFRAG_OFF (12UL) 135 0 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_BACKPRESSURE_PREFRAG_OFF (13UL) 136 0 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_CAUGHT_UP_POSTFRAG_OFF (14UL) 137 0 : #define FD_METRICS_COUNTER_TILE_REGIME_DURATION_NANOS_PROCESSING_POSTFRAG_OFF (15UL) 138 : 139 : 140 0 : #define FD_METRICS_ALL_TOTAL (16UL) 141 : extern const fd_metrics_meta_t FD_METRICS_ALL[FD_METRICS_ALL_TOTAL]; 142 : 143 318 : #define FD_METRICS_ALL_LINK_IN_TOTAL (8UL) 144 : extern const fd_metrics_meta_t FD_METRICS_ALL_LINK_IN[FD_METRICS_ALL_LINK_IN_TOTAL]; 145 : 146 318 : #define FD_METRICS_ALL_LINK_OUT_TOTAL (1UL) 147 : extern const fd_metrics_meta_t FD_METRICS_ALL_LINK_OUT[FD_METRICS_ALL_LINK_OUT_TOTAL]; 148 : 149 666 : #define FD_METRICS_TOTAL_SZ (8UL*221UL) 150 : 151 0 : #define FD_METRICS_TILE_KIND_CNT 10 152 : extern const char * FD_METRICS_TILE_KIND_NAMES[FD_METRICS_TILE_KIND_CNT]; 153 : extern const ulong FD_METRICS_TILE_KIND_SIZES[FD_METRICS_TILE_KIND_CNT]; 154 : extern const fd_metrics_meta_t * FD_METRICS_TILE_KIND_METRICS[FD_METRICS_TILE_KIND_CNT];