From 7cc686133b84811cfb604faf5d88139bea561505 Mon Sep 17 00:00:00 2001 From: Natan Yellin Date: Fri, 25 Oct 2024 11:02:22 +0300 Subject: [PATCH] Better logging message about history (#351) --- robusta_krr/core/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robusta_krr/core/runner.py b/robusta_krr/core/runner.py index d418b8eb..76e1474a 100644 --- a/robusta_krr/core/runner.py +++ b/robusta_krr/core/runner.py @@ -218,8 +218,8 @@ async def _check_data_availability(self, cluster: Optional[str]) -> None: try: history_range = await prometheus_loader.get_history_range(timedelta(hours=5)) except ValueError: - logger.warning( - f"Was not able to get history range for cluster {cluster}. This is not critical, will try continue." + logger.info( + f"Unable to check how much historical data is available on cluster {cluster}. Will assume it is sufficient and calculate recommendations anyway. (You can usually ignore this. Not all Prometheus compatible metric stores support checking history settings.)" ) self.errors.append( {