{ "id": "166469", "key": "DAEMON-59", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12519", "key": "DAEMON", "name": "Appcelerator Daemon" }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2017-03-07T19:26:57.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2020-02-13T18:05:45.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "15618", "name": "appcd-telemetry" } ], "description": "Tracking the system hardware configuration, software versions, and actions don't give us enough technical insight into the daemon's inner workings. We should track memory, CPU, subprocess, and network I/O usage and watch for things that are abnormal such as prolonged cpu usage or high memory usage, then send telemetry events every so often.\r\n\r\nA health check involves:\r\n* Main process CPU and memory usage\r\n* Plugin CPU and memory usage\r\n\r\nWhen a threshold is exceeded for a period of time, then the system will send an event containing:\r\n\r\n* System info\r\n** OS and architecture\r\n** How much memory does the system have?\r\n** How much memory is free?\r\n** How many CPUs are there?\r\n* Daemon info\r\n** Startup time?\r\n** How big is the V8 heap?\r\n** Config file settings\r\n* Daemon runtime info\r\n** Dispatcher requests\r\n** How much CPU is the daemon consuming for the past minute, 5 minutes, 15 minutes?\r\n** How much memory is the daemon consuming for the past minute, 5 minutes, 15 minutes?\r\n** How many subprocesses are actively running?\r\n** How many active client connections are there?\r\n** How much I/O is caused by the client connections?\r\n** What is the load average for the past minute, 5 minutes, 15 minutes?\r\n** What is the resident set size for the past minute, 5 minutes, 15 minutes?\r\n** Filesystem Watcher stats\r\n\r\nThe appcd-core process (via the StatusMonitor) as well as all external plugin child host processes have an Agent that collects health data. Stats are constantly emitted, but that doesn't include the historical data and that has to be manually fetched.\r\n\r\nAs apart of this ticket, it would be great if the Agent had the option to store the collection of data in the parent process instead of the Agent itself. This would open the door to being to stream this info, analyze it, and send out these telemetry bits.", "attachment": [], "flagged": false, "summary": "appcd-telemetry: Implement telemetry for abnormal health checks", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }