Skip to content

Stale SNR Metrics for Non-Neighbor Nodes #154

@artiommocrenco

Description

@artiommocrenco

The app continues to report Signal-to-Noise Ratio (SNR) metrics for nodes that are no longer neighbors. This issue affects both inactive nodes and active nodes that have stopped being neighbours. As a result, metrics are displayed inaccurately in Prometheus and Grafana, leading to confusion and incorrect network monitoring.

Steps to Reproduce:

  1. Set up the Prometheus exporter in a Meshtastic network.

  2. Observe the SNR metrics reported for neighboring nodes.

  3. Change the network topology such that some nodes are no longer neighbors (while they may still be active in the network).

  4. Observe that the SNR metrics for non-neighbor nodes continue to be reported.

Expected Behavior:

• Metrics for nodes that are no longer neighbors should be removed or reset after they stop being reported as neighbors.

• Metrics should be calculated on demand when Prometheus scrapes data, ensuring that only current neighbors are included.

Actual Behavior:

• Stale metrics for nodes that are no longer neighbors persist indefinitely.

• The exporter pre-calculates and stores metrics, rather than recalculating them on demand during Prometheus scrapes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions