{"id":19196025,"url":"https://github.com/acj/pingrok","last_synced_at":"2026-02-26T05:50:01.400Z","repository":{"id":57639171,"uuid":"194559282","full_name":"acj/pingrok","owner":"acj","description":"A tool for displaying subsecond offset heatmaps of ICMP ping latency","archived":false,"fork":false,"pushed_at":"2025-04-16T23:36:44.000Z","size":214,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-17T12:18:33.255Z","etag":null,"topics":["echo","heatmap","latency","performance","ping","troubleshooting"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-06-30T20:39:23.000Z","updated_at":"2025-04-16T23:36:47.000Z","dependencies_parsed_at":"2023-10-12T12:08:21.936Z","dependency_job_id":"9a5dfd98-907d-47ba-8a39-ffdda06a385d","html_url":"https://github.com/acj/pingrok","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fpingrok","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fpingrok/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fpingrok/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fpingrok/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acj","download_url":"https://codeload.github.com/acj/pingrok/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171205,"owners_count":21865279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["echo","heatmap","latency","performance","ping","troubleshooting"],"created_at":"2024-11-09T12:12:15.471Z","updated_at":"2026-02-26T05:49:56.371Z","avatar_url":"https://github.com/acj.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pingrok\n\n![Go](https://github.com/acj/pingrok/workflows/CI/badge.svg)\n\nA tool for creating subsecond offset heatmaps for ICMP echo (ping) replies\n\n## Demo\n\n[![pingrok asciicast demo](https://asciinema.org/a/381549.svg)](https://asciinema.org/a/381549)\n\n## Why\n\nI noticed that occasionally my MacBook Pro's wifi latency would become spiky. It was most noticeable when I was using interactive sessions like SSH, but it was degrading my download throughput too. Using ICMP echo (ping) requests and plotting their response time on a [subsecond offset heatmap](http://www.brendangregg.com/HeatMaps/subsecondoffset.html), I could visualize the latency and confirm that it spiked from ~5ms to ~300ms (or more) every half second. I eventually traced it to a specific VirtualBox VM. In the process, this tool was born.\n\n## How it works\n\nMost of the interesting bits happen in the `pinger` module, which continuously sends ICMP echo packets to a host with a frequency that you specify. When the responses arrive, the pinger records the timestamp and the delay (latency), and then that data is sent to the `dataPointPartitioner` to be divided into one-second buckets. Those buckets are then displayed as a heatmap.\n\nVisually, it's important to understand that _both_ axes are displaying time. The x-axis shows a rolling window of passing time, which is common, but the y-axis shows the latency at various points _within each second_. If you're dealing with a problem that occurs very briefly and/or more frequently than once per second, as I was, then this extra resolution is critical.\n\n## Installing\n\nIf you have the Go toolchain installed, `go get` should work:\n\n```\ngo get -u github.com/acj/pingrok\n```\n\n## Building from source\n\nClone this repository, and then:\n\n```\ngo build\n```\n\nand optionally:\n\n```\ngo test ./...\n```\n\n## Building and running with Docker\n\nThis has been tested on a Linux host but may have issues in other environments like Docker for Mac.\n\n```\nsudo docker build -f docker/Dockerfile -t pingrok .\nsudo docker run --network=host --rm -it pingrok [options]\n```\n\n## Usage\n\n```\n$ ./pingrok --help\nUsage of ./pingrok:\n  -h string\n        the host to ping (default \"192.168.1.1\")\n  -l string\n        Log file path (default \"pingrok.log\")\n  -o    Overlay latency numbers on heatmap\n  -r int\n        number of pings per second (default 10)\n  -t int\n        seconds of data to display (default 30)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facj%2Fpingrok","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facj%2Fpingrok","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facj%2Fpingrok/lists"}