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

Telemetry for capture module #73

Draft
wants to merge 11 commits into
base: dev
Choose a base branch
from

Conversation

adalava
Copy link
Contributor

@adalava adalava commented May 18, 2021

This is a work in progress (draft pull request)

Implements "telemetry" module so external applications can retrieve data from current capture session without disturbing it.
The data can be used by a monitoring application to generate statistics and also detect failures. As example, it could detect last frame block was processed a long time ago, so capture is stuck and action is required.

command:

$ curl http://127.0.0.1:2100

output:

{
	"status": "capturing",
	"fps_expected": 25.0,
	"fps_estimated": 19.7,
	"block_frames": 256,
	"dropped_frames": 85,
	"frame_time_average": 0.049,
	"capture_start_time": "2021-05-18T06:12:44.820058",
	"last_frame_block": "2021-05-18T06:13:28.868691"
}

TODO wish list:

  • add config option to enable/disable web service
  • add config option to customize web service listen IP and port
  • add a webservice endpoint to retrieve the last frame in the 256 block (http://127.0.0.1/last_frame)
  • retrieve data from Stars and Meteor detection engine (number of stars and meteor count)
  • limit number of connections to avoid DoS

dvida pushed a commit that referenced this pull request Jul 5, 2023
Merging trackstack fix in
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.

3 participants