-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
* fix: duties logging * feat(sentry): Fetch proposer duties * feat(sentry): Fetch proposer duties * feat(sentry): Fetch proposer duties
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DROP TABLE IF EXISTS beacon_api_eth_v1_proposer_duty ON CLUSTER '{cluster}'; | ||
DROP TABLE IF EXISTS default.beacon_api_eth_v1_proposer_duty_local ON CLUSTER '{cluster}'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
CREATE TABLE default.beacon_api_eth_v1_proposer_duty_local on cluster '{cluster}' | ||
( | ||
unique_key Int64, | ||
updated_date_time DateTime CODEC(DoubleDelta, ZSTD(1)), | ||
event_date_time DateTime64(3) CODEC(DoubleDelta, ZSTD(1)), | ||
slot UInt32 CODEC(DoubleDelta, ZSTD(1)), | ||
slot_start_date_time DateTime CODEC(DoubleDelta, ZSTD(1)), | ||
epoch UInt32 CODEC(DoubleDelta, ZSTD(1)), | ||
epoch_start_date_time DateTime CODEC(DoubleDelta, ZSTD(1)), | ||
proposer_validator_index UInt32 CODEC(ZSTD(1)), | ||
proposer_pubkey String CODEC(ZSTD(1)), | ||
meta_client_name LowCardinality(String), | ||
meta_client_id String CODEC(ZSTD(1)), | ||
meta_client_version LowCardinality(String), | ||
meta_client_implementation LowCardinality(String), | ||
meta_client_os LowCardinality(String), | ||
meta_client_ip Nullable(IPv6) CODEC(ZSTD(1)), | ||
meta_client_geo_city LowCardinality(String) CODEC(ZSTD(1)), | ||
meta_client_geo_country LowCardinality(String) CODEC(ZSTD(1)), | ||
meta_client_geo_country_code LowCardinality(String) CODEC(ZSTD(1)), | ||
meta_client_geo_continent_code LowCardinality(String) CODEC(ZSTD(1)), | ||
meta_client_geo_longitude Nullable(Float64) CODEC(ZSTD(1)), | ||
meta_client_geo_latitude Nullable(Float64) CODEC(ZSTD(1)), | ||
meta_client_geo_autonomous_system_number Nullable(UInt32) CODEC(ZSTD(1)), | ||
meta_client_geo_autonomous_system_organization Nullable(String) CODEC(ZSTD(1)), | ||
meta_network_id Int32 CODEC(DoubleDelta, ZSTD(1)), | ||
meta_network_name LowCardinality(String), | ||
meta_consensus_version LowCardinality(String), | ||
meta_consensus_version_major LowCardinality(String), | ||
meta_consensus_version_minor LowCardinality(String), | ||
meta_consensus_version_patch LowCardinality(String), | ||
meta_consensus_implementation LowCardinality(String), | ||
meta_labels Map(String, String) CODEC(ZSTD(1)) | ||
) Engine = ReplicatedReplacingMergeTree('/clickhouse/{installation}/{cluster}/tables/{shard}/{database}/{table}', '{replica}', updated_date_time) | ||
PARTITION BY toStartOfMonth(slot_start_date_time) | ||
ORDER BY (slot_start_date_time, unique_key, meta_network_name); | ||
|
||
ALTER TABLE default.beacon_api_eth_v1_proposer_duty_local ON CLUSTER '{cluster}' | ||
MODIFY COMMENT 'Contains a proposer duty from a beacon block.', | ||
COMMENT COLUMN unique_key 'Unique key for the row generated from seahash', | ||
COMMENT COLUMN updated_date_time 'When this row was last updated', | ||
COMMENT COLUMN event_date_time 'When the client fetched the beacon block from a beacon node', | ||
COMMENT COLUMN slot 'The slot number from beacon block payload', | ||
COMMENT COLUMN slot_start_date_time 'The wall clock time when the slot started', | ||
COMMENT COLUMN epoch 'The epoch number from beacon block payload', | ||
COMMENT COLUMN epoch_start_date_time 'The wall clock time when the epoch started', | ||
COMMENT COLUMN proposer_validator_index 'The validator index from the proposer duty payload', | ||
COMMENT COLUMN proposer_pubkey 'The BLS public key of the validator from the proposer duty payload', | ||
COMMENT COLUMN meta_client_name 'Name of the client that generated the event', | ||
COMMENT COLUMN meta_client_id 'Unique Session ID of the client that generated the event. This changes every time the client is restarted.', | ||
COMMENT COLUMN meta_client_version 'Version of the client that generated the event', | ||
COMMENT COLUMN meta_client_implementation 'Implementation of the client that generated the event', | ||
COMMENT COLUMN meta_client_os 'Operating system of the client that generated the event', | ||
COMMENT COLUMN meta_client_ip 'IP address of the client that generated the event', | ||
COMMENT COLUMN meta_client_geo_city 'City of the client that generated the event', | ||
COMMENT COLUMN meta_client_geo_country 'Country of the client that generated the event', | ||
COMMENT COLUMN meta_client_geo_country_code 'Country code of the client that generated the event', | ||
COMMENT COLUMN meta_client_geo_continent_code 'Continent code of the client that generated the event', | ||
COMMENT COLUMN meta_client_geo_longitude 'Longitude of the client that generated the event', | ||
COMMENT COLUMN meta_client_geo_latitude 'Latitude of the client that generated the event', | ||
COMMENT COLUMN meta_client_geo_autonomous_system_number 'Autonomous system number of the client that generated the event', | ||
COMMENT COLUMN meta_client_geo_autonomous_system_organization 'Autonomous system organization of the client that generated the event', | ||
COMMENT COLUMN meta_network_id 'Ethereum network ID', | ||
COMMENT COLUMN meta_network_name 'Ethereum network name', | ||
COMMENT COLUMN meta_consensus_version 'Ethereum consensus client version that generated the event', | ||
COMMENT COLUMN meta_consensus_version_major 'Ethereum consensus client major version that generated the event', | ||
COMMENT COLUMN meta_consensus_version_minor 'Ethereum consensus client minor version that generated the event', | ||
COMMENT COLUMN meta_consensus_version_patch 'Ethereum consensus client patch version that generated the event', | ||
COMMENT COLUMN meta_consensus_implementation 'Ethereum consensus client implementation that generated the event', | ||
COMMENT COLUMN meta_labels 'Labels associated with the event'; | ||
|
||
CREATE TABLE beacon_api_eth_v1_proposer_duty on cluster '{cluster}' AS beacon_api_eth_v1_proposer_duty_local | ||
ENGINE = Distributed('{cluster}', default, beacon_api_eth_v1_proposer_duty_local, rand()); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package v1 | ||
|
||
var ( | ||
StateIDFinalized = "finalized" | ||
StateIDHead = "head" | ||
StateIDJustified = "justified" | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.