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_bank.h" 6 : #include "fd_metrics_dedup.h" 7 : #include "fd_metrics_net.h" 8 : #include "fd_metrics_pack.h" 9 : #include "fd_metrics_poh.h" 10 : #include "fd_metrics_quic.h" 11 : #include "fd_metrics_resolv.h" 12 : #include "fd_metrics_shred.h" 13 : #include "fd_metrics_store.h" 14 : #include "fd_metrics_verify.h" 15 : #ifdef FD_HAS_NO_AGAVE 16 : #include "fd_metrics_replay.h" 17 : #include "fd_metrics_storei.h" 18 : #endif 19 : 20 : /* Start of LINK OUT metrics */ 21 : 22 0 : #define FD_METRICS_COUNTER_LINK_SLOW_COUNT_OFF (0UL) 23 : #define FD_METRICS_COUNTER_LINK_SLOW_COUNT_NAME "link_slow_count" 24 : #define FD_METRICS_COUNTER_LINK_SLOW_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 25 : #define FD_METRICS_COUNTER_LINK_SLOW_COUNT_DESC "The number of times the consumer was detected as rate limiting consumer by the producer." 26 : #define FD_METRICS_COUNTER_LINK_SLOW_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 27 : 28 : /* Start of LINK IN metrics */ 29 : 30 0 : #define FD_METRICS_COUNTER_LINK_CONSUMED_COUNT_OFF (0UL) 31 : #define FD_METRICS_COUNTER_LINK_CONSUMED_COUNT_NAME "link_consumed_count" 32 : #define FD_METRICS_COUNTER_LINK_CONSUMED_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 33 : #define FD_METRICS_COUNTER_LINK_CONSUMED_COUNT_DESC "The number of times the link reader has consumed a fragment." 34 : #define FD_METRICS_COUNTER_LINK_CONSUMED_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 35 : 36 0 : #define FD_METRICS_COUNTER_LINK_CONSUMED_SIZE_BYTES_OFF (1UL) 37 : #define FD_METRICS_COUNTER_LINK_CONSUMED_SIZE_BYTES_NAME "link_consumed_size_bytes" 38 : #define FD_METRICS_COUNTER_LINK_CONSUMED_SIZE_BYTES_TYPE (FD_METRICS_TYPE_COUNTER) 39 : #define FD_METRICS_COUNTER_LINK_CONSUMED_SIZE_BYTES_DESC "The total number of bytes read by the link consumer." 40 : #define FD_METRICS_COUNTER_LINK_CONSUMED_SIZE_BYTES_CVT (FD_METRICS_CONVERTER_NONE) 41 : 42 0 : #define FD_METRICS_COUNTER_LINK_FILTERED_COUNT_OFF (2UL) 43 : #define FD_METRICS_COUNTER_LINK_FILTERED_COUNT_NAME "link_filtered_count" 44 : #define FD_METRICS_COUNTER_LINK_FILTERED_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 45 : #define FD_METRICS_COUNTER_LINK_FILTERED_COUNT_DESC "The number of fragments that were filtered and not consumed." 46 : #define FD_METRICS_COUNTER_LINK_FILTERED_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 47 : 48 0 : #define FD_METRICS_COUNTER_LINK_FILTERED_SIZE_BYTES_OFF (3UL) 49 : #define FD_METRICS_COUNTER_LINK_FILTERED_SIZE_BYTES_NAME "link_filtered_size_bytes" 50 : #define FD_METRICS_COUNTER_LINK_FILTERED_SIZE_BYTES_TYPE (FD_METRICS_TYPE_COUNTER) 51 : #define FD_METRICS_COUNTER_LINK_FILTERED_SIZE_BYTES_DESC "The total number of bytes read by the link consumer that were filtered." 52 : #define FD_METRICS_COUNTER_LINK_FILTERED_SIZE_BYTES_CVT (FD_METRICS_CONVERTER_NONE) 53 : 54 0 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_COUNT_OFF (4UL) 55 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_COUNT_NAME "link_overrun_polling_count" 56 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 57 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_COUNT_DESC "The number of times the link has been overrun while polling." 58 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 59 : 60 0 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_FRAG_COUNT_OFF (5UL) 61 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_FRAG_COUNT_NAME "link_overrun_polling_frag_count" 62 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_FRAG_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 63 : #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." 64 : #define FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_FRAG_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 65 : 66 0 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_COUNT_OFF (6UL) 67 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_COUNT_NAME "link_overrun_reading_count" 68 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 69 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_COUNT_DESC "The number of input overruns detected while reading metadata by the consumer." 70 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 71 : 72 0 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_FRAG_COUNT_OFF (7UL) 73 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_FRAG_COUNT_NAME "link_overrun_reading_frag_count" 74 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_FRAG_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 75 : #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." 76 : #define FD_METRICS_COUNTER_LINK_OVERRUN_READING_FRAG_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 77 : 78 : /* Start of TILE metrics */ 79 : 80 0 : #define FD_METRICS_GAUGE_TILE_PID_OFF (0UL) 81 : #define FD_METRICS_GAUGE_TILE_PID_NAME "tile_pid" 82 : #define FD_METRICS_GAUGE_TILE_PID_TYPE (FD_METRICS_TYPE_GAUGE) 83 : #define FD_METRICS_GAUGE_TILE_PID_DESC "The process ID of the tile." 84 : #define FD_METRICS_GAUGE_TILE_PID_CVT (FD_METRICS_CONVERTER_NONE) 85 : 86 0 : #define FD_METRICS_GAUGE_TILE_TID_OFF (1UL) 87 : #define FD_METRICS_GAUGE_TILE_TID_NAME "tile_tid" 88 : #define FD_METRICS_GAUGE_TILE_TID_TYPE (FD_METRICS_TYPE_GAUGE) 89 : #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." 90 : #define FD_METRICS_GAUGE_TILE_TID_CVT (FD_METRICS_CONVERTER_NONE) 91 : 92 0 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_INVOLUNTARY_COUNT_OFF (2UL) 93 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_INVOLUNTARY_COUNT_NAME "tile_context_switch_involuntary_count" 94 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_INVOLUNTARY_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 95 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_INVOLUNTARY_COUNT_DESC "The number of involuntary context switches." 96 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_INVOLUNTARY_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 97 : 98 0 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_VOLUNTARY_COUNT_OFF (3UL) 99 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_VOLUNTARY_COUNT_NAME "tile_context_switch_voluntary_count" 100 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_VOLUNTARY_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 101 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_VOLUNTARY_COUNT_DESC "The number of voluntary context switches." 102 : #define FD_METRICS_COUNTER_TILE_CONTEXT_SWITCH_VOLUNTARY_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 103 : 104 0 : #define FD_METRICS_GAUGE_STEM_STATUS_OFF (4UL) 105 : #define FD_METRICS_GAUGE_STEM_STATUS_NAME "stem_status" 106 : #define FD_METRICS_GAUGE_STEM_STATUS_TYPE (FD_METRICS_TYPE_GAUGE) 107 : #define FD_METRICS_GAUGE_STEM_STATUS_DESC "The current status of the tile. 0 is booting, 1 is running." 108 : #define FD_METRICS_GAUGE_STEM_STATUS_CVT (FD_METRICS_CONVERTER_NONE) 109 : 110 0 : #define FD_METRICS_GAUGE_STEM_HEARTBEAT_OFF (5UL) 111 : #define FD_METRICS_GAUGE_STEM_HEARTBEAT_NAME "stem_heartbeat" 112 : #define FD_METRICS_GAUGE_STEM_HEARTBEAT_TYPE (FD_METRICS_TYPE_GAUGE) 113 : #define FD_METRICS_GAUGE_STEM_HEARTBEAT_DESC "The last UNIX timestamp in nanoseconds that the tile heartbeated." 114 : #define FD_METRICS_GAUGE_STEM_HEARTBEAT_CVT (FD_METRICS_CONVERTER_NONE) 115 : 116 0 : #define FD_METRICS_GAUGE_STEM_IN_BACKPRESSURE_OFF (6UL) 117 : #define FD_METRICS_GAUGE_STEM_IN_BACKPRESSURE_NAME "stem_in_backpressure" 118 : #define FD_METRICS_GAUGE_STEM_IN_BACKPRESSURE_TYPE (FD_METRICS_TYPE_GAUGE) 119 : #define FD_METRICS_GAUGE_STEM_IN_BACKPRESSURE_DESC "Whether the tile is currently backpressured or not, either 1 or 0." 120 : #define FD_METRICS_GAUGE_STEM_IN_BACKPRESSURE_CVT (FD_METRICS_CONVERTER_NONE) 121 : 122 0 : #define FD_METRICS_COUNTER_STEM_BACKPRESSURE_COUNT_OFF (7UL) 123 : #define FD_METRICS_COUNTER_STEM_BACKPRESSURE_COUNT_NAME "stem_backpressure_count" 124 : #define FD_METRICS_COUNTER_STEM_BACKPRESSURE_COUNT_TYPE (FD_METRICS_TYPE_COUNTER) 125 : #define FD_METRICS_COUNTER_STEM_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." 126 : #define FD_METRICS_COUNTER_STEM_BACKPRESSURE_COUNT_CVT (FD_METRICS_CONVERTER_NONE) 127 : 128 0 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_OFF (8UL) 129 0 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CNT (8UL) 130 : 131 0 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_HOUSEKEEPING_OFF (8UL) 132 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_HOUSEKEEPING_NAME "stem_regime_duration_nanos_caught_up_housekeeping" 133 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_HOUSEKEEPING_TYPE (FD_METRICS_TYPE_COUNTER) 134 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_HOUSEKEEPING_DESC "Mutually exclusive and exhaustive duration of time the tile spent in each of the regimes. (Caught up + Housekeeping)" 135 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_HOUSEKEEPING_CVT (FD_METRICS_CONVERTER_NANOSECONDS) 136 : 137 0 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_HOUSEKEEPING_OFF (9UL) 138 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_HOUSEKEEPING_NAME "stem_regime_duration_nanos_processing_housekeeping" 139 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_HOUSEKEEPING_TYPE (FD_METRICS_TYPE_COUNTER) 140 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_HOUSEKEEPING_DESC "Mutually exclusive and exhaustive duration of time the tile spent in each of the regimes. (Processing + Housekeeping)" 141 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_HOUSEKEEPING_CVT (FD_METRICS_CONVERTER_NANOSECONDS) 142 : 143 0 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_BACKPRESSURE_HOUSEKEEPING_OFF (10UL) 144 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_BACKPRESSURE_HOUSEKEEPING_NAME "stem_regime_duration_nanos_backpressure_housekeeping" 145 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_BACKPRESSURE_HOUSEKEEPING_TYPE (FD_METRICS_TYPE_COUNTER) 146 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_BACKPRESSURE_HOUSEKEEPING_DESC "Mutually exclusive and exhaustive duration of time the tile spent in each of the regimes. (Backpressure + Housekeeping)" 147 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_BACKPRESSURE_HOUSEKEEPING_CVT (FD_METRICS_CONVERTER_NANOSECONDS) 148 : 149 0 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_PREFRAG_OFF (11UL) 150 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_PREFRAG_NAME "stem_regime_duration_nanos_caught_up_prefrag" 151 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_PREFRAG_TYPE (FD_METRICS_TYPE_COUNTER) 152 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_PREFRAG_DESC "Mutually exclusive and exhaustive duration of time the tile spent in each of the regimes. (Caught up + Prefrag)" 153 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_PREFRAG_CVT (FD_METRICS_CONVERTER_NANOSECONDS) 154 : 155 0 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_PREFRAG_OFF (12UL) 156 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_PREFRAG_NAME "stem_regime_duration_nanos_processing_prefrag" 157 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_PREFRAG_TYPE (FD_METRICS_TYPE_COUNTER) 158 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_PREFRAG_DESC "Mutually exclusive and exhaustive duration of time the tile spent in each of the regimes. (Processing + Prefrag)" 159 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_PREFRAG_CVT (FD_METRICS_CONVERTER_NANOSECONDS) 160 : 161 0 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_BACKPRESSURE_PREFRAG_OFF (13UL) 162 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_BACKPRESSURE_PREFRAG_NAME "stem_regime_duration_nanos_backpressure_prefrag" 163 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_BACKPRESSURE_PREFRAG_TYPE (FD_METRICS_TYPE_COUNTER) 164 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_BACKPRESSURE_PREFRAG_DESC "Mutually exclusive and exhaustive duration of time the tile spent in each of the regimes. (Backpressure + Prefrag)" 165 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_BACKPRESSURE_PREFRAG_CVT (FD_METRICS_CONVERTER_NANOSECONDS) 166 : 167 0 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_POSTFRAG_OFF (14UL) 168 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_POSTFRAG_NAME "stem_regime_duration_nanos_caught_up_postfrag" 169 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_POSTFRAG_TYPE (FD_METRICS_TYPE_COUNTER) 170 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_POSTFRAG_DESC "Mutually exclusive and exhaustive duration of time the tile spent in each of the regimes. (Caught up + Postfrag)" 171 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_CAUGHT_UP_POSTFRAG_CVT (FD_METRICS_CONVERTER_NANOSECONDS) 172 : 173 0 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_POSTFRAG_OFF (15UL) 174 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_POSTFRAG_NAME "stem_regime_duration_nanos_processing_postfrag" 175 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_POSTFRAG_TYPE (FD_METRICS_TYPE_COUNTER) 176 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_POSTFRAG_DESC "Mutually exclusive and exhaustive duration of time the tile spent in each of the regimes. (Processing + Postfrag)" 177 : #define FD_METRICS_COUNTER_STEM_REGIME_DURATION_NANOS_PROCESSING_POSTFRAG_CVT (FD_METRICS_CONVERTER_NANOSECONDS) 178 : 179 : 180 0 : #define FD_METRICS_ALL_TOTAL (16UL) 181 : extern const fd_metrics_meta_t FD_METRICS_ALL[FD_METRICS_ALL_TOTAL]; 182 : 183 6 : #define FD_METRICS_ALL_LINK_IN_TOTAL (8UL) 184 : extern const fd_metrics_meta_t FD_METRICS_ALL_LINK_IN[FD_METRICS_ALL_LINK_IN_TOTAL]; 185 : 186 6 : #define FD_METRICS_ALL_LINK_OUT_TOTAL (1UL) 187 : extern const fd_metrics_meta_t FD_METRICS_ALL_LINK_OUT[FD_METRICS_ALL_LINK_OUT_TOTAL]; 188 : 189 : #define FD_METRICS_TOTAL_SZ (8UL*194UL) 190 : #ifndef FD_HAS_NO_AGAVE 191 0 : #define FD_METRICS_TILE_KIND_CNT 10 192 : #else 193 : #define FD_METRICS_TILE_KIND_CNT 12 194 : #endif 195 : extern const char * FD_METRICS_TILE_KIND_NAMES[FD_METRICS_TILE_KIND_CNT]; 196 : extern const ulong FD_METRICS_TILE_KIND_SIZES[FD_METRICS_TILE_KIND_CNT]; 197 : extern const fd_metrics_meta_t * FD_METRICS_TILE_KIND_METRICS[FD_METRICS_TILE_KIND_CNT];