{"id":13463722,"url":"https://github.com/simonswine/kube-latency","last_synced_at":"2025-05-07T03:47:10.269Z","repository":{"id":50667218,"uuid":"86252599","full_name":"simonswine/kube-latency","owner":"simonswine","description":"Benchmark kubernetes' Pod network","archived":false,"fork":false,"pushed_at":"2017-04-25T14:16:09.000Z","size":11019,"stargazers_count":42,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T03:47:01.136Z","etag":null,"topics":["grafana","kubernetes","latency","network","network-overlay","prometheus"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonswine.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}},"created_at":"2017-03-26T17:49:34.000Z","updated_at":"2025-03-27T21:28:35.000Z","dependencies_parsed_at":"2022-09-04T13:52:00.846Z","dependency_job_id":null,"html_url":"https://github.com/simonswine/kube-latency","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonswine%2Fkube-latency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonswine%2Fkube-latency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonswine%2Fkube-latency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonswine%2Fkube-latency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonswine","download_url":"https://codeload.github.com/simonswine/kube-latency/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810275,"owners_count":21807759,"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":["grafana","kubernetes","latency","network","network-overlay","prometheus"],"created_at":"2024-07-31T14:00:27.377Z","updated_at":"2025-05-07T03:47:10.251Z","avatar_url":"https://github.com/simonswine.png","language":"Go","funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"# kube-latency\n\nThis is a simple little tool, that helps to measure bandwidth and latency in a\nkubernetes Pod Network.\n\n![Screenshot Grafana](contrib/screenshots/grafana.png)\n\n## Tests\n\nThese tests are excuted on every Node (through a DaemonSet) every 10 seconds\n\n* Test `/ping` all other Pods (5 times)\n* Download `/data` (16MBytes) from one randomly selected node\n\nThe result of the tests is tagged with Zone, Node and Pod information and\nscraped by Prometheus. The results can graphed using Grafana.\n\n## Example test case\n\n```\n# Setup prometheues + kube-latency in cluster using helm\n## prometheus runs on nodes that are labeled `role: monitoring`\n## kube-latency runs on nodes that are labeled `role: worker`\nhelm upgrade --install --values contrib/test/kube-latency-values.yaml test-kl contrib/helm/kube-latency\n\n# Setup grafana\nhelm upgrade --install --values contrib/grafana/helm-values.yaml grafana stable/grafana\n\n# Port forwards\n## prometheus localhost:9090\n## grafana    localhost:9091\nkubectl port-forward --namespace default $(kubectl get pods --namespace default -l \"app=prometheus,release=test-kl\" -o jsonpath=\"{.items[0].metadata.name}\") 9090:9090\nkubectl port-forward --namespace default $(kubectl get pods --namespace default -l \"app=grafana-grafana,component=grafana\" -o jsonpath=\"{.items[0].metadata.name}\") 9091:3000\n\n# add the datasource to grafana\n\n# Import Grafana's dashboard from contrib/grafana/kube-latency-dashboard.json.\nThe username and password for Grafana is admin.\n\n# Scale up the asg\nfor i in {6..100..3}; do\n  echo \"scaling to $i\" \u0026\u0026 aws autoscaling set-desired-capacity --auto-scaling-group-name kubernetes-nonprod_devcluster-worker --desired-capacity $i \u0026\u0026 sleep 60\ndone\n\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonswine%2Fkube-latency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonswine%2Fkube-latency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonswine%2Fkube-latency/lists"}