You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the local server API to get air gradient sensor data, I noticed the boot and bootCount values were not being updated. This only happened after I configured postDataToAirGradient: false. I have a simple airgradient prometheus exporter that I used to gather the local server metrics into a Prometheus instance. You can see from the below Grafana graph before postDataToAirGradient: false, the boot count metric was incremented every 1m. After the change, the bootCount value doesn't increment.
Analysis
It appears bootCount is incremented in the sendDataToServer() func. The func returns early, not incrementing bootCount, when posting to airgradient servers is disabled.
The text was updated successfully, but these errors were encountered:
Problem
When using the local server API to get air gradient sensor data, I noticed the
boot
andbootCount
values were not being updated. This only happened after I configuredpostDataToAirGradient: false
. I have a simple airgradient prometheus exporter that I used to gather the local server metrics into a Prometheus instance. You can see from the below Grafana graph beforepostDataToAirGradient: false
, the boot count metric was incremented every 1m. After the change, thebootCount
value doesn't increment.Analysis
It appears
bootCount
is incremented in thesendDataToServer()
func. The func returns early, not incrementingbootCount
, when posting to airgradient servers is disabled.The text was updated successfully, but these errors were encountered: