Open
Conversation
Merges the Astro migration and pipeline refactor from main, adapting the client-versions notebook to the new workflow: - Convert 04-client-versions.qmd to .ipynb format - Add client_versions query to pipeline.yaml - Add client-versions notebook entry to pipeline.yaml - Update README with client-versions notebook 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Preview Deployment🚀 Preview is ready! URL: https://observatory-staging.ethp2p.dev/pr-11/ Updated: 2025-12-23T23:51:27.779Z |
Split single raw-data query into three server-side aggregated queries: - client_hourly: hourly connection counts by client (for time series) - client_version_dist: top 15 versions per client (for version charts) - client_summary: unique peers, version count, top version per client Benefits: - Reduces data transfer from millions of rows to ~300 aggregated rows - Moves client categorization (CASE statement) to SQL - Uses ClickHouse's uniqExact() and argMax() for accurate stats - Simplifies notebook code by removing in-memory aggregation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
raulk
requested changes
Dec 23, 2025
Contributor
raulk
left a comment
There was a problem hiding this comment.
The orignal code was exporting all connections in a Parquet file and then performing aggregations locally in Pandas dataframes. This was inefficient. I adjusted the queries to offload the aggregations to Clickhouse. We now only generate aggregated Parquet files.
I created an "Unknown" category and labelled all empty or unidentified clients as "Unknown", excluding them from plots as they were too noisy.
The plots can benefit from more tweaks @bharath-123:
- Plot unknown against known peers.
- Plot connections per client label over time (aggregated, e.g. in 5min windows).
- Plot unique peers over time x client labels.
- Figure out a denser way of visualizing client/version clusters in a single diagram.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This notebook shows the client diversity and versions of different clients connected to xatu nodes.
Resolves: #10