junos_exporter icon indicating copy to clipboard operation
junos_exporter copied to clipboard

Metrics for Prometheus are no longer returned when polling devices

Open valerarar opened this issue 2 years ago • 2 comments

Metrics for Prometheus are no longer returned when polling devices a junos_exporter This happens even when polling 10 devices As a result, the alerts will no longer fire: image

Is it possible to store data statically in a file permanently and update as new values come in?

valerarar avatar Mar 17 '22 07:03 valerarar

I haven't checked this particular issue. But is it possible that your polling rate is too low? So prometheus "forgets" about the metric. If it is this problem, the solution is either to poll more frequently, or change a prometheus option, i think it is: --query.lookback-delta=15m which i've set at 15minutes for my usage case

lethalwp avatar May 17 '22 13:05 lethalwp

No, the problem is that while the metrics are being collected, the current metrics become unavailable. And when the alert manager polls the value, it gets no data.

valerarar avatar May 30 '22 08:05 valerarar