| 1 | # make sure python.d.plugin data collection job is running |
| 2 | |
| 3 | template: python.d_job_last_collected_secs |
| 4 | on: netdata.pythond_runtime |
| 5 | class: Errors |
| 6 | type: Netdata |
| 7 | component: python.d.plugin |
| 8 | host labels: _hostname=!* |
| 9 | calc: $now - $last_collected_t |
| 10 | units: seconds ago |
| 11 | every: 10s |
| 12 | warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every)) |
| 13 | crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every)) |
| 14 | delay: down 5m multiplier 1.5 max 1h |
| 15 | summary: Python.d plugin last collection |
| 16 | info: Number of seconds since the last successful data collection |
| 17 | to: webmaster |