-
Notifications
You must be signed in to change notification settings - Fork 31
fix: resolve the issue of running hypertrace-alert-engine with postgres #276
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
Changes from 5 commits
9f4cb16
8edb212
9b17d2f
50b2a97
7e8f09b
69662ce
ac22c87
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,8 +74,31 @@ services: | |
| # service_started, not service_healthy as pinot and deps can take longer than 60s to start | ||
| condition: service_started | ||
|
|
||
| hypertrace-alert-engine: | ||
| image: hypertrace/hypertrace-alert-engine:1.0.7 | ||
| container_name: hypertrace-alert-engine | ||
| # comment below two lines if you want to run alert-engine after modifying appropriate | ||
| # alert-rules.json and notification-rules.json files | ||
| entrypoint: [ "/bin/sh" ] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you explain this part? |
||
| command: ["-c", | ||
| "echo Pl. comment out entrypoint and command to run alert engine | ||
| after configuring alert-rules.json and notification-rules.json"] | ||
| environment: | ||
| - ALERT_RULES_PATH=/app/resources/alert-rules.json | ||
| - NOTIFICATION_CHANNELS_PATH=/app/resources/notification-rules.json | ||
| - QUERY_SERVICE_HOST_CONFIG=hypertrace | ||
| - QUERY_SERVICE_PORT_CONFIG=9001 | ||
| - ATTRIBUTE_SERVICE_HOST_CONFIG=hypertrace | ||
| - ATTRIBUTE_SERVICE_PORT_CONFIG=9001 | ||
| volumes: | ||
| - ../docker/configs/alert-rules.json:/app/resources/alert-rules.json:ro | ||
| - ../docker/configs/notification-rules.json:/app/resources/notification-rules.json:ro | ||
| depends_on: | ||
| hypertrace: | ||
| # service_started, not service_healthy as pinot and deps can take longer than 60s to start | ||
| condition: service_healthy | ||
|
|
||
| # Third-party data services: | ||
| # Third-party data services: | ||
|
|
||
| # Kafka is used for streaming functionality. | ||
| # ZooKeeper is required by Kafka and Pinot | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,6 +71,29 @@ services: | |
| # service_started, not service_healthy as pinot and deps can take longer than 60s to start | ||
| condition: service_started | ||
|
|
||
| hypertrace-alert-engine: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kotharironak , I see what you have done here. Ideally the way we had 2 different files earlier makes more sense considering I don't want alerting when I am trying it out for first time anyways because I am just trying out platform. If directory or command is the problem, we can have duplicate files but let's have it in 2 steps. First step will be cc: @rish691
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @JBAhire In that case, we need a copy of the same files in postgres folder. I can do that as well. I will copy alerting files in postgres folder then.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As discussed offline with @JBAhire, let's keep the default + postgres folder in sync. And, we will go with one simple command. |
||
| image: hypertrace/hypertrace-alert-engine:1.0.7 | ||
| container_name: hypertrace-alert-engine | ||
| # comment below two lines if you want to run alert-engine after modifying appropriate | ||
| # alert-rules.json and notification-rules.json files | ||
| entrypoint: [ "/bin/sh" ] | ||
| command: [ "-c", | ||
| "echo Pl. comment out entrypoint and command to run alert engine | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In case we agree to go with this one, don't use abbreviations here. |
||
| after configuring alert-rules.json and notification-rules.json" ] | ||
| environment: | ||
| - ALERT_RULES_PATH=/app/resources/alert-rules.json | ||
| - NOTIFICATION_CHANNELS_PATH=/app/resources/notification-rules.json | ||
| - QUERY_SERVICE_HOST_CONFIG=hypertrace | ||
| - QUERY_SERVICE_PORT_CONFIG=9001 | ||
| - ATTRIBUTE_SERVICE_HOST_CONFIG=hypertrace | ||
| - ATTRIBUTE_SERVICE_PORT_CONFIG=9001 | ||
| volumes: | ||
| - ../../docker/configs/alert-rules.json:/app/resources/alert-rules.json:ro | ||
| - ../../docker/configs/notification-rules.json:/app/resources/notification-rules.json:ro | ||
| depends_on: | ||
| hypertrace: | ||
| # service_started, not service_healthy as pinot and deps can take longer than 60s to start | ||
| condition: service_healthy | ||
| # Third-party data services: | ||
|
|
||
| # Kafka is used for streaming functionality. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once, we have fixed for latest version, we will remove the version tag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed! Could you check once and update here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done