summaryrefslogtreecommitdiff
path: root/robusta_krr
diff options
context:
space:
mode:
authorLeaveMyYard <zhukovpavel2001@gmail.com>2023-10-09 10:55:22 +0300
committerLeaveMyYard <zhukovpavel2001@gmail.com>2023-10-09 10:55:22 +0300
commitac1eadac45e7372d77f905c698f7e64808c4da8b (patch)
tree824023ca207c55ac8300eedb48d954b3d76b9136 /robusta_krr
parent248be94aaa84c7680622b3ecb57a6f934d9165ff (diff)
Add readme requirements for used metrics
Diffstat (limited to 'robusta_krr')
-rw-r--r--robusta_krr/core/models/config.py2
-rw-r--r--robusta_krr/core/runner.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/robusta_krr/core/models/config.py b/robusta_krr/core/models/config.py
index 6e7ae30..3d6aabc 100644
--- a/robusta_krr/core/models/config.py
+++ b/robusta_krr/core/models/config.py
@@ -138,7 +138,7 @@ class Config(pd.BaseSettings):
# NOTE: This class is just a proxy for _config.
# Import settings from this module and use it like it is just a config object.
-class _Settings(Config):
+class _Settings(Config): # Config here is used for type checking
def __init__(self) -> None:
pass
diff --git a/robusta_krr/core/runner.py b/robusta_krr/core/runner.py
index f50f55f..3c49634 100644
--- a/robusta_krr/core/runner.py
+++ b/robusta_krr/core/runner.py
@@ -145,7 +145,8 @@ class Runner:
logger.warning(
f"Was not able to load any pods for {object} from Prometheus.\n\t"
"This could mean that Prometheus is missing some required metrics.\n\t"
- "Loaded pods from Kubernetes API instead."
+ "Loaded pods from Kubernetes API instead.\n\t"
+ "See more info at https://github.com/robusta-dev/krr#requirements "
)
metrics = await prometheus_loader.gather_data(