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

Save system metrics to local database/log #28

Open
glossyio opened this issue Nov 5, 2024 · 1 comment
Open

Save system metrics to local database/log #28

glossyio opened this issue Nov 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@glossyio
Copy link
Owner

glossyio commented Nov 5, 2024

Problem

Follow-up on #24. System metrics only get sent as telemetry while device is connected and communicating with ThingsBoard. Want to save metrics to local database or logs for local analysis and potentially back-filling server data when connection is interrupted.

Proposed Solution

Save payload to SQLite database/logs.
Might create a large database, put a configurable retention limit.

Combine with #26 to solve this issue??

Alternative Solutions

Could leave it as telemetry-only, but it would be hard to diagnose issues if the device is offline.

Additional Info

@glossyio glossyio added the enhancement New feature or request label Nov 5, 2024
@glossyio glossyio added this to the System monitoring (initial) milestone Nov 5, 2024
@mhlmhl
Copy link
Collaborator

mhlmhl commented Nov 5, 2024

Instead of explicitly saving to a database, how about using MQTT + SQLite to do the same "behind the scenes".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants