Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes prometheus url check on Kubernetes #544

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions run_kraken.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ def main(cfg):
# KrknTelemetry init
telemetry_k8s = KrknTelemetryKubernetes(safe_logger, kubecli)
telemetry_ocp = KrknTelemetryOpenshift(safe_logger, ocpcli)
prometheus = KrknPrometheus(prometheus_url, prometheus_bearer_token)


if enable_alerts:
prometheus = KrknPrometheus(prometheus_url, prometheus_bearer_token)

logging.info("Server URL: %s" % kubecli.get_host())

Expand Down Expand Up @@ -337,7 +340,7 @@ def main(cfg):
failed_post_scenarios, scenario_telemetries = network_chaos.run(scenarios_list, config, wait_duration, kubecli, telemetry_k8s)

# Check for critical alerts when enabled
if check_critical_alerts:
if enable_alerts and check_critical_alerts :
logging.info("Checking for critical alerts firing post choas")

##PROM
Expand Down