Fixed sample service path
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-08-19 04:03:48 +02:00
parent de7a325398
commit 703947e25f
3 changed files with 3 additions and 3 deletions

View File

@ -17,6 +17,6 @@ data:
GUARD_RABBITMQ_PASSWORD: ZgCiSiSO8t GUARD_RABBITMQ_PASSWORD: ZgCiSiSO8t
GUARD_RABBITMQ_USERNAME: user GUARD_RABBITMQ_USERNAME: user
GUARD_SERVICE_RELEASEMODE: release GUARD_SERVICE_RELEASEMODE: release
INPUT_SVC_HOSTNAME: sample-service SAMPLE_SVC_HOSTNAME: sample-service
RELEASE_ID: kmlabz-k8s RELEASE_ID: kmlabz-k8s
SENTRY_DSN: https://1d01460ec3094d5bb6c4d78c0a028b08@glitchtip.kmlabz.com/7 SENTRY_DSN: https://1d01460ec3094d5bb6c4d78c0a028b08@glitchtip.kmlabz.com/7

View File

@ -86,7 +86,7 @@ def on_message_creator(mqtt_: MQTT):
scope.span.log_kv({'event': 'decisionMade', 'alerting': True}) scope.span.log_kv({'event': 'decisionMade', 'alerting': True})
try: try:
r = requests_session.get( r = requests_session.get(
f"http://{config.INPUT_HOSTNAME}/input/{msg_json['tag']}", f"http://{config.SAMPLE_SVC_HOSTNAME}/sample/{msg_json['tag']}",
timeout=config.INPUT_TIMEOUT timeout=config.INPUT_TIMEOUT
) )
except requests.exceptions.Timeout: except requests.exceptions.Timeout:

View File

@ -31,7 +31,7 @@ MQTT_USERNAME = os.getenv("GUARD_MQTT_USERNAME", "guard-service")
MQTT_PASSWORD = os.getenv("GUARD_MQTT_PASSWORD", "guard-service") MQTT_PASSWORD = os.getenv("GUARD_MQTT_PASSWORD", "guard-service")
MQTT_TOPIC = os.getenv("GUARD_MQTT_TOPIC", "guard-service") MQTT_TOPIC = os.getenv("GUARD_MQTT_TOPIC", "guard-service")
INPUT_HOSTNAME = os.getenv("INPUT_SVC_HOSTNAME", "input-service") SAMPLE_SVC_HOSTNAME = os.getenv("SAMPLE_SVC_HOSTNAME", "input-service")
INPUT_TIMEOUT = int(os.environ.get("INPUT_SVC_TIMEOUT", 5)) INPUT_TIMEOUT = int(os.environ.get("INPUT_SVC_TIMEOUT", 5))
TRIGGER_LEVEL = float(os.environ.get("TRIGGER_LEVEL", 0.51)) TRIGGER_LEVEL = float(os.environ.get("TRIGGER_LEVEL", 0.51))