sqshq / sampler

Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.
https://sampler.dev
GNU General Public License v3.0
12.88k stars 573 forks source link

rate-ms appears to be not honoured in gauges #74

Closed tastytea closed 4 years ago

tastytea commented 5 years ago

I've set rate-ms to 10000 but it is updated at least once a second. The full block is:

gauges:
  - title: Memory used (MiB)
    position: [[0, 20], [20, 4]]
    rate-ms: 10000
    scale: 0
    color: 58
    cur:
      sample: env LC_ALL=C free -m | grep ^Mem | awk '{print $3}'
    max:
      sample: env LC_ALL=C free -m | grep ^Mem | awk '{print $2}'
    min:
      sample: echo 0
    triggers:
      - title: Low memory
        condition: '[ $label == "cur" ] && [ $cur -ge 15000 ] && echo 1 || echo 0'
        actions:
            visual: true
crile commented 4 years ago

Same problem for runcharts. My rate-ms is set to 60000.

sqshq commented 4 years ago

Fixed, and will be available with the new release. Thank you for reporting this.