Continuous telemetry - update stats db info
Description
Click to expand
Who
- -- developer
- @dagiopia -- reviewer
- @dagiopia @kabir.kbr @janaina.senna -- architectural definitions
What
- Update the stats database with telemetry data collected by DMS in this Issue and in this Issue.
How
- Send the telemetry data to the stats db communicating with the gRPC server.
- Use the
device_resource_change
event to send the telemetry data:
Change in amount of resources : device_resource_change
The event should be triggered when there is a change in resources of the the devices for example
if some of the dedicated memory gets consumed while running a process the free memory has been been
reduced. This should trigger an event with the defined parameter.
{
"peer_id": "integer",
"changed_attribute_and_value":
{
"cpu": "integer",
"ram": "integer",
"network": "integer",
"dedicated_time": "integer",
},
"timestamp": "integer"
}
Why
- A peer needs to update the stats db for the overall network status information. Since the NuNet platform is a decentralized p2p infrastructure, there is no way to monitor devices unless the peers to report their status.
When
- No technical dependencies.
Acceptance Criteria
Click to expand
- Code review
- Demo to the dev team
Work Breakdown Structure (WBS)
Task | Description | Duration | Status | Start Date | End Date | Comment |
---|---|---|---|---|---|---|
A | x Hrs | Done/In Progress |
Edited by Janaina Senna