Closed jdfranel closed 4 years ago
@mtakaki seeing this as well
I'll take a look into this. It looks like if the status doesn't change, it's not triggering a metrics push. Lemme try reproduce it through unit test.
Also, UPDATE_STATUS should also run if the status doesn't change, so the date/time in the UI reflects when it was last 'Operational'?
@mtakaki did you manage to have a look?
I hit this issue too and https://github.com/mtakaki/cachet-url-monitor/pull/88 fixes it for me.
I'm sorry about the delay to look into it. I haven't had enough time to work on it. But I promise I'll confirm if things are looking good today.
Many thanks @mtakaki !
All thanks to @nijel! He's the one that fixed it, @analytically :)
Hi @mtakaki,
First of all, thanks for this great piece of code.
I'm a pretty new user of cachet and cachet-url-monitor. So far, I have managed to configure the different components and the status is updated correctly. My problem is that I cannot see any metrics pushed but I cannot see what I am doing wrong.
I am running cachet-url-monitor in the provided Docker Container.
Here is my config:
An extract of the log (seems to me that I should have some "Metric uploaded" logs between the "No changes")
I configured the metric in Cachet like so:
And nothing is visible on the dashbord and there is no metrics_points in cachet database (not access logs on metrics endpoints in cachet).
I have tried to tweak the monitored url and managed to get a status change by HTTP_STATUS and LATENCY, neither seems to trigger a metric push.
Any insight will be greatly appreciated.
Thanks,