Send events information to StatsDB - Part 2
Description
Click to expand
Who
- -- developer
- @dagiopia -- reviewer
- @dagiopia @kabir.kbr @janaina.senna -- architectural definitions
What
- Update the stats database with events collected by DMS. This Issue is a continuation of this Issue.
- Update telemetry API if we need to change it (https://nunet.gitlab.io/open-api/telemetry-api-spec/develop/).
How
- Send an event information to StatsDB communicating with the gRPC server.
- The available events are defined here: https://gitlab.com/nunet/architecture/-/wikis/Events-Status
- The
- Some events are already been collected by the DMS and sent to the StatDB:
- The next events should be collected by the DMS and sent to the StatDB in this Issue:
- device_status_change
- device_resource_config
- The next events will be addressed in another Issue:
- ntx_payment
- new_service
- service_remove
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
- Telemetry API update (if needed)
Work Breakdown Structure (WBS)
Task | Description | Duration | Status | Start Date | End Date | Comment |
---|---|---|---|---|---|---|
A | Implement device_status_change GRPC call to statsdb | 14 Hrs | Done | 21/12/2022 | This issue will require changes in the Stats db repository also | |
B | Create statsdb Device resource configuration change GRPC call | 10 hrs | In Progress | 26/12/2022 |
Edited by Deependra Singh