Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metrics collection and endpoint #284

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

alonkashtan
Copy link

I added metrics endpoint that give two things: (1) Number of packets past so far per proxy (2) Last events happened in Toxiproxy (Client connected, packet sent, packet send failure, Client disconnected).

These endpoints are meant to enable the user to:

  1. When running automated requests, verify behaviour of the system (for example, verify that the config doesn't bypass Toxiproxy, that packets were indeed sent, when disconnections occurs and so on)
  2. Visualize real-time traffic passing through Toxiproxy. I have been using the fork with a client that shows traffic on a timeline, and this helped us to find performance problems in running automated tests, allowing to cut several minutes off the CD pipeline. Other scenarios were to see in real-time how different actions correlate to chatiness with the DB and finding long forgotten periodic requests

@miry miry self-assigned this Sep 17, 2021
@neufeldtech neufeldtech linked an issue Feb 25, 2022 that may be closed by this pull request
@dianadevasia dianadevasia deleted the branch Shopify:main April 20, 2023 16:13
@dianadevasia dianadevasia reopened this Apr 24, 2023
@dianadevasia dianadevasia changed the base branch from master to main April 24, 2023 15:39
@miry miry removed their assignment May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add metrics and RT monitoring
4 participants