├── .gitignore ├── .gitlab-ci.yml ├── Cargo.lock ├── Cargo.toml ├── Dockerfile ├── LICENSE ├── Procfile ├── README.md ├── RustConfig ├── deployment.template.yml ├── diesel.toml ├── grafana_dashboard_01.json ├── grafana_dashboard_02.json ├── log_messages.txt ├── migrations ├── .gitkeep ├── 00000000000000_diesel_initial_setup │ ├── down.sql │ └── up.sql ├── 2019-02-11-181154_create_substrate_logs │ ├── down.sql │ └── up.sql ├── 2019-05-23-134208_create_idx_node_ip │ ├── down.sql │ └── up.sql ├── 2019-05-23-135015_create_idx_msg_type │ ├── down.sql │ └── up.sql ├── 2019-08-16-131907_create_peer_connections │ ├── down.sql │ └── up.sql ├── 2019-08-16-132515_add_peer_to_substrate_logs │ ├── down.sql │ └── up.sql ├── 2019-08-22-094016_create_index_on_peer_id │ ├── down.sql │ └── up.sql ├── 2019-09-27-125919_create_index_created_at_msg_type │ ├── down.sql │ └── up.sql ├── 2019-09-30-144205_add_audit_to_peer_connections │ ├── down.sql │ └── up.sql ├── 2019-10-28-055145_create_host_systems │ ├── down.sql │ └── up.sql ├── 2019-10-28-064727_create_benchmarks │ ├── down.sql │ └── up.sql ├── 2019-12-11-135359_add_peer_id_to_benchmarks │ ├── down.sql │ └── up.sql ├── 2019-12-13-130241_align_benchmarks │ ├── down.sql │ └── up.sql ├── 2019-12-13-161417_create_benchmark_events │ ├── down.sql │ └── up.sql ├── 2020-04-10-113123_add_info_to_peer_connections │ ├── down.sql │ └── up.sql └── 2020-09-08-111742_create_index_on_peerset_nodes │ ├── down.sql │ └── up.sql ├── rustfmt.toml ├── src ├── cache │ └── mod.rs ├── db │ ├── benchmarks.rs │ ├── filters.rs │ ├── mod.rs │ ├── models.rs │ ├── nodes.rs │ ├── peer_data.rs │ ├── reputation.rs │ └── stats.rs ├── main.rs ├── schema.rs ├── util │ └── mod.rs └── web │ ├── benchmarks.rs │ ├── dashboard.rs │ ├── feed.rs │ ├── metrics.rs │ ├── mod.rs │ ├── nodes.rs │ ├── reputation.rs │ ├── root.rs │ └── stats.rs ├── static ├── benchmarks │ └── index.html ├── profiling │ └── index.html └── reputation │ └── index.html └── telemetry_messages.json /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | **/*.rs.bk 3 | .idea 4 | .env 5 | *.swp 6 | env_commands.md 7 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/.gitlab-ci.yml -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/LICENSE -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/Procfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/README.md -------------------------------------------------------------------------------- /RustConfig: -------------------------------------------------------------------------------- 1 | RUST_INSTALL_DIESEL=1 2 | 3 | -------------------------------------------------------------------------------- /deployment.template.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/deployment.template.yml -------------------------------------------------------------------------------- /diesel.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/diesel.toml -------------------------------------------------------------------------------- /grafana_dashboard_01.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/grafana_dashboard_01.json -------------------------------------------------------------------------------- /grafana_dashboard_02.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/grafana_dashboard_02.json -------------------------------------------------------------------------------- /log_messages.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/log_messages.txt -------------------------------------------------------------------------------- /migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /migrations/00000000000000_diesel_initial_setup/down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/00000000000000_diesel_initial_setup/down.sql -------------------------------------------------------------------------------- /migrations/00000000000000_diesel_initial_setup/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/00000000000000_diesel_initial_setup/up.sql -------------------------------------------------------------------------------- /migrations/2019-02-11-181154_create_substrate_logs/down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE substrate_logs; -------------------------------------------------------------------------------- /migrations/2019-02-11-181154_create_substrate_logs/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-02-11-181154_create_substrate_logs/up.sql -------------------------------------------------------------------------------- /migrations/2019-05-23-134208_create_idx_node_ip/down.sql: -------------------------------------------------------------------------------- 1 | DROP INDEX substrate_logs_node_ip_idx; -------------------------------------------------------------------------------- /migrations/2019-05-23-134208_create_idx_node_ip/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-05-23-134208_create_idx_node_ip/up.sql -------------------------------------------------------------------------------- /migrations/2019-05-23-135015_create_idx_msg_type/down.sql: -------------------------------------------------------------------------------- 1 | DROP INDEX substrate_logs_msg_type_idx; -------------------------------------------------------------------------------- /migrations/2019-05-23-135015_create_idx_msg_type/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-05-23-135015_create_idx_msg_type/up.sql -------------------------------------------------------------------------------- /migrations/2019-08-16-131907_create_peer_connections/down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE peer_connections; -------------------------------------------------------------------------------- /migrations/2019-08-16-131907_create_peer_connections/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-08-16-131907_create_peer_connections/up.sql -------------------------------------------------------------------------------- /migrations/2019-08-16-132515_add_peer_to_substrate_logs/down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-08-16-132515_add_peer_to_substrate_logs/down.sql -------------------------------------------------------------------------------- /migrations/2019-08-16-132515_add_peer_to_substrate_logs/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-08-16-132515_add_peer_to_substrate_logs/up.sql -------------------------------------------------------------------------------- /migrations/2019-08-22-094016_create_index_on_peer_id/down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-08-22-094016_create_index_on_peer_id/down.sql -------------------------------------------------------------------------------- /migrations/2019-08-22-094016_create_index_on_peer_id/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-08-22-094016_create_index_on_peer_id/up.sql -------------------------------------------------------------------------------- /migrations/2019-09-27-125919_create_index_created_at_msg_type/down.sql: -------------------------------------------------------------------------------- 1 | DROP INDEX substrate_logs_created_at_msg_idx; -------------------------------------------------------------------------------- /migrations/2019-09-27-125919_create_index_created_at_msg_type/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-09-27-125919_create_index_created_at_msg_type/up.sql -------------------------------------------------------------------------------- /migrations/2019-09-30-144205_add_audit_to_peer_connections/down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE peer_connections DROP COLUMN audit; -------------------------------------------------------------------------------- /migrations/2019-09-30-144205_add_audit_to_peer_connections/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-09-30-144205_add_audit_to_peer_connections/up.sql -------------------------------------------------------------------------------- /migrations/2019-10-28-055145_create_host_systems/down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE host_systems; -------------------------------------------------------------------------------- /migrations/2019-10-28-055145_create_host_systems/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-10-28-055145_create_host_systems/up.sql -------------------------------------------------------------------------------- /migrations/2019-10-28-064727_create_benchmarks/down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE benchmarks; -------------------------------------------------------------------------------- /migrations/2019-10-28-064727_create_benchmarks/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-10-28-064727_create_benchmarks/up.sql -------------------------------------------------------------------------------- /migrations/2019-12-11-135359_add_peer_id_to_benchmarks/down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE benchmarks DROP COLUMN peer_id; -------------------------------------------------------------------------------- /migrations/2019-12-11-135359_add_peer_id_to_benchmarks/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-12-11-135359_add_peer_id_to_benchmarks/up.sql -------------------------------------------------------------------------------- /migrations/2019-12-13-130241_align_benchmarks/down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE benchmarks; -------------------------------------------------------------------------------- /migrations/2019-12-13-130241_align_benchmarks/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-12-13-130241_align_benchmarks/up.sql -------------------------------------------------------------------------------- /migrations/2019-12-13-161417_create_benchmark_events/down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE benchmark_events; -------------------------------------------------------------------------------- /migrations/2019-12-13-161417_create_benchmark_events/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2019-12-13-161417_create_benchmark_events/up.sql -------------------------------------------------------------------------------- /migrations/2020-04-10-113123_add_info_to_peer_connections/down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2020-04-10-113123_add_info_to_peer_connections/down.sql -------------------------------------------------------------------------------- /migrations/2020-04-10-113123_add_info_to_peer_connections/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2020-04-10-113123_add_info_to_peer_connections/up.sql -------------------------------------------------------------------------------- /migrations/2020-09-08-111742_create_index_on_peerset_nodes/down.sql: -------------------------------------------------------------------------------- 1 | DROP INDEX substrate_logs_peerset_nodes_idx; 2 | -------------------------------------------------------------------------------- /migrations/2020-09-08-111742_create_index_on_peerset_nodes/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/migrations/2020-09-08-111742_create_index_on_peerset_nodes/up.sql -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | edition = "2018" -------------------------------------------------------------------------------- /src/cache/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/cache/mod.rs -------------------------------------------------------------------------------- /src/db/benchmarks.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/db/benchmarks.rs -------------------------------------------------------------------------------- /src/db/filters.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/db/filters.rs -------------------------------------------------------------------------------- /src/db/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/db/mod.rs -------------------------------------------------------------------------------- /src/db/models.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/db/models.rs -------------------------------------------------------------------------------- /src/db/nodes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/db/nodes.rs -------------------------------------------------------------------------------- /src/db/peer_data.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/db/peer_data.rs -------------------------------------------------------------------------------- /src/db/reputation.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/db/reputation.rs -------------------------------------------------------------------------------- /src/db/stats.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/db/stats.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/schema.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/schema.rs -------------------------------------------------------------------------------- /src/util/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/util/mod.rs -------------------------------------------------------------------------------- /src/web/benchmarks.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/web/benchmarks.rs -------------------------------------------------------------------------------- /src/web/dashboard.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/web/dashboard.rs -------------------------------------------------------------------------------- /src/web/feed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/web/feed.rs -------------------------------------------------------------------------------- /src/web/metrics.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/web/metrics.rs -------------------------------------------------------------------------------- /src/web/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/web/mod.rs -------------------------------------------------------------------------------- /src/web/nodes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/web/nodes.rs -------------------------------------------------------------------------------- /src/web/reputation.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/web/reputation.rs -------------------------------------------------------------------------------- /src/web/root.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/web/root.rs -------------------------------------------------------------------------------- /src/web/stats.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/src/web/stats.rs -------------------------------------------------------------------------------- /static/benchmarks/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/static/benchmarks/index.html -------------------------------------------------------------------------------- /static/profiling/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/static/profiling/index.html -------------------------------------------------------------------------------- /static/reputation/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/static/reputation/index.html -------------------------------------------------------------------------------- /telemetry_messages.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/substrate-analytics/HEAD/telemetry_messages.json --------------------------------------------------------------------------------