You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a snapshot pipeline consisting of three tiles:
- snaprd: reads or downloads snapshots
- snapdc: decompresses snapshots
- snapin: parses snapshots and loads accounts into funk
Copy file name to clipboardExpand all lines: book/api/metrics-generated.md
+52-1Lines changed: 52 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@
28
28
| <spanclass="metrics-name">tile_​tid</span> | gauge | The thread ID of the tile. Always the same as the Pid in production, but might be different in development. |
29
29
| <spanclass="metrics-name">tile_​context_​switch_​involuntary_​count</span> | counter | The number of involuntary context switches. |
30
30
| <spanclass="metrics-name">tile_​context_​switch_​voluntary_​count</span> | counter | The number of voluntary context switches. |
31
-
| <spanclass="metrics-name">tile_​status</span> | gauge | The current status of the tile. 0 is booting, 1 is running. |
31
+
| <spanclass="metrics-name">tile_​status</span> | gauge | The current status of the tile. 0 is booting, 1 is running. 2 is shutdown |
32
32
| <spanclass="metrics-name">tile_​heartbeat</span> | gauge | The last UNIX timestamp in nanoseconds that the tile heartbeated. |
33
33
| <spanclass="metrics-name">tile_​in_​backpressure</span> | gauge | Whether the tile is currently backpressured or not, either 1 or 0. |
34
34
| <spanclass="metrics-name">tile_​backpressure_​count</span> | counter | Number of times the tile has had to wait for one of more consumers to catch up to resume publishing. |
| <spanclass="metrics-name">snaprd_​state</span> | gauge | State of the tile. 0 = waiting for at least one peer from gossip, 1 = collecting peers from gossip, 2 = pinging peers, 3 = collecting ping responses, 4 = reading full snapshot file, 5 = reading incremental snapshot file, 6 = downloading full snapshot file, 7 = downloading incremental snapshot file, 8 = pinging peers before loading the incremental snapshot, 0 = collecting ping responses before loading the incremental snapshot, 10 = waiting for full snapshot to finish loading, 11 = waiting for incremental snapshot to finish loading, 12 = done |
802
+
| <spanclass="metrics-name">snaprd_​full_​num_​retries</span> | counter | Number of times we aborted and retried full snapshot download because the peer was too slow |
803
+
| <spanclass="metrics-name">snaprd_​incremental_​num_​retries</span> | counter | Number of times we aborted and retried incremental snapshot download because the peer was too slow |
804
+
| <spanclass="metrics-name">snaprd_​full_​bytes_​read</span> | gauge | Number of bytes read so far from the full snapshot. Might decrease if snapshot load is aborted and restarted |
805
+
| <spanclass="metrics-name">snaprd_​full_​bytes_​total</span> | gauge | Total size of the full snapshot file. Might change if snapshot load is aborted and restarted |
806
+
| <spanclass="metrics-name">snaprd_​full_​download_​retries</span> | gauge | Number of times we retried the full snapshot download because the peer was too slow |
807
+
| <spanclass="metrics-name">snaprd_​incremental_​bytes_​read</span> | gauge | Number of bytes read so far from the incremental snapshot. Might decrease if snapshot load is aborted and restarted |
808
+
| <spanclass="metrics-name">snaprd_​incremental_​bytes_​total</span> | gauge | Total size of the incremental snapshot file. Might change if snapshot load is aborted and restarted |
809
+
| <spanclass="metrics-name">snaprd_​incremental_​download_​retries</span> | gauge | Number of times we retried the incremental snapshot download because the peer was too slow |
810
+
811
+
</div>
812
+
813
+
## Snapdc Tile
814
+
815
+
<divclass="metrics">
816
+
817
+
| Metric | Type | Description |
818
+
|--------|------|-------------|
819
+
| <spanclass="metrics-name">snapdc_​state</span> | gauge | State of the tile. 0 = waiting for compressed byte stream, 1 = decompressing full snapshot, 2 = decompressing incremental snapshot, 3 = Done |
820
+
| <spanclass="metrics-name">snapdc_​full_​compressed_​bytes_​read</span> | gauge | Number of bytes read so far from the compressed full snapshot file. Might decrease if snapshot load is aborted and restarted |
821
+
| <spanclass="metrics-name">snapdc_​full_​decompressed_​bytes_​read</span> | gauge | Number of bytes read so far from the decompressed file. Might decrease if snapshot load is aborted and restarted |
822
+
| <spanclass="metrics-name">snapdc_​full_​decompressed_​bytes_​total</span> | gauge | Total size of the decompressed full snapshot file. Might change if snapshot load is aborted and restarted |
823
+
| <spanclass="metrics-name">snapdc_​incremental_​compressed_​bytes_​read</span> | gauge | Number of bytes read so far from the compressed incremental snapshot file. Might decrease if snapshot load is aborted and restarted |
824
+
| <spanclass="metrics-name">snapdc_​incremental_​decompressed_​bytes_​read</span> | gauge | Number of bytes read so far from the decompressed incremental snapshot file. Might decrease if snapshot load is aborted and restarted |
825
+
| <spanclass="metrics-name">snapdc_​incremental_​decompressed_​bytes_​total</span> | gauge | Total size of the decompressed incremental snapshot file. Might change if snapshot load is aborted and restarted |
826
+
827
+
</div>
828
+
829
+
## Snapin Tile
830
+
831
+
<divclass="metrics">
832
+
833
+
| Metric | Type | Description |
834
+
|--------|------|-------------|
835
+
| <spanclass="metrics-name">snapin_​state</span> | gauge | State of the tile. 0 = waiting for decompressed snapshot bytestream, 1 = processing full snapshot, 2 = processing incremental snapshot, 3 = Done |
836
+
| <spanclass="metrics-name">snapin_​full_​accounts_​files_​processed</span> | gauge | Number of accounts files (appendvecs) processed in the full snapshot. Might decrease if snapshot load is aborted and restarted |
837
+
| <spanclass="metrics-name">snapin_​full_​accounts_​files_​total</span> | gauge | Total number of accounts files in the full snapshot. Might change if snapshot load is aborted and restarted |
838
+
| <spanclass="metrics-name">snapin_​incremental_​accounts_​files_​processed</span> | gauge | Number of accounts files (appendvecs) processed in the incremental snapshot. Might decrease if snapshot load is aborted and restarted |
839
+
| <spanclass="metrics-name">snapin_​incremental_​accounts_​files_​total</span> | gauge | Total number of accounts files in the full snapshot. Might change if snapshot load is aborted and restarted |
840
+
| <spanclass="metrics-name">snapin_​full_​accounts_​processed</span> | gauge | Number of accounts processed in the full snapshot. Might decrease if snapshot load is aborted and restarted |
841
+
| <spanclass="metrics-name">snapin_​incremental_​accounts_​processed</span> | gauge | Number of accounts processed in the incremental snapshot. Might decrease if snapshot load is aborted and restarted |
842
+
| <spanclass="metrics-name">snapin_​accounts_​inserted</span> | gauge | Number of accounts inserted during snpashot loading. Might decrease if snapshot load is aborted and restarted |
0 commit comments