twstokes / arris-scrape

Arris modem status page scraper that uploads signal values to InfluxDB and Grafana.
https://www.tannr.com/2021/03/22/scraping-an-arris-cable-modem-status-page/
MIT License
11 stars 7 forks source link

Changes to grafana page and add timeout to scraper #4

Closed jdburton closed 2 years ago

jdburton commented 2 years ago
  1. Change the grafana page to show the change in Corrected and Uncorrectables instead of the total numbers. The change is the non-negative difference between the most recent values. This is more useful because if an internet connection is unstable, users will want to see how the errors are fluctuating, not the total numbers.

  2. Add a time out to requests.get() to prevent the scraper from hanging if the webpage is non-responsive.

jdburton commented 2 years ago

This is the new dashboard. This shows the effect of an defective upstream amplifier being replaced at 10:48 AM.

Grafana Modem Dashboard

twstokes commented 2 years ago

This is the new dashboard. This shows the effect of an defective upstream amplifier being replaced at 10:48 AM.

Look at how pretty the Correcteds graph is! NFT material! 🤣

twstokes commented 2 years ago
  1. Change the grafana page to show the change in Corrected and Uncorrectables instead of the total numbers. The change is the non-negative difference between the most recent values. This is more useful because if an internet connection is unstable, users will want to see how the errors are fluctuating, not the total numbers.

This makes sense! I've found mine just accumulate over time until a restart, so a flat graph (but a high number) isn't necessarily bad, it could show stability. What we really care about are fluctuations. 👍 This also makes setting up an alert a lot easier. 🔔