openwisp / openwisp-monitoring

Network monitoring system written in Python and Django, designed to be extensible, programmable, scalable and easy to use by end users: once the system is configured, monitoring checks, alerts and metric collection happens automatically.
https://openwisp.io/docs/dev/monitoring/
Other
163 stars 110 forks source link

[bug] Timeseries migration script does not handle singal metrics #586

Open pandafy opened 2 months ago

pandafy commented 2 months ago

In PR #368, we modified the structure for storing metrics in the time series database. However, this update did not include restructuring the signal metrics. As a result, the signal metrics are still being written with interface name as the metric key.

Additionally, the time series migration script introduced in PR #368 does not account for signal metrics and would inadvertently delete signal data if executed on the database.

Required fixes

  1. Restructure Signal Metrics: Update the signal metrics to align with the traffic and wifi_clients metrics.
  2. Update Migration Script: Modify the time series migration script to handle signal metrics correctly and prevent data loss.