Closed keyboardfann closed 7 years ago
Submit a pull request. @trevorndodds could you help to review it ? If you have any concern , welcome to discuss it.
Thanks, weird I actually never ran into that issue. I may replace your --interval with a ENV variable at some point as that works better with docker. For now it's fine.
Good news and thank you for quickly review.
Noticed if the ES node the script is pointing to is dead/stopped the script dies after sometime. Is it supposed to keep trying anyway as per interval so that next call should work if ES is back up.
Probably need the exception handling in all the ES calls
Hi @joealex , I think in this commit support retry. https://github.com/trevorndodds/elasticsearch-metrics/commit/c890c85201cea6ec9448340c63068a49ecd841e3
When elasticsearch2elastic.py run some time , it will crash during to timediff < 0. I think it's because when it query busy ES cluster and interval will bigger than timediff.