-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: optional chartcuterie service & profile #4333
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
base: master
Are you sure you want to change the base?
Changes from all commits
98f0b43
900d25f
cc76962
f430caa
96b4a6e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -852,7 +852,13 @@ services: | |
| <<: *depends_on-healthy | ||
| profiles: | ||
| - feature-complete | ||
|
|
||
| chartcuterie: | ||
| <<: [*restart_policy, *pull_policy] | ||
| image: "$CHARTCUTERIE_IMAGE" | ||
|
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. Bug: The Suggested FixDefine the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| environment: | ||
| CHARTCUTERIE_CONFIG: "http://web:9000/_chartcuterie-config.js" | ||
| profiles: | ||
| - chartcuterie | ||
| volumes: | ||
| # These store application data that should persist across restarts. | ||
| sentry-data: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ set -eu | |
| OLD_VERSION="${CRAFT_OLD_VERSION:-${1:-}}" | ||
| NEW_VERSION="${CRAFT_NEW_VERSION:-${2:-}}" | ||
|
|
||
| sed -i -e "s/^\(SENTRY\|SNUBA\|RELAY\|SYMBOLICATOR\|TASKBROKER\|VROOM\|UPTIME_CHECKER\|LAUNCHPAD\)_IMAGE=\([^:]\+\):.\+\$/\1_IMAGE=\2:$NEW_VERSION/" .env | ||
| sed -i -e "s/^\(SENTRY\|SNUBA\|RELAY\|SYMBOLICATOR\|TASKBROKER\|VROOM\|UPTIME_CHECKER\|LAUNCHPAD\|CHARTCUTERIE\)_IMAGE=\([^:]\+\):.\+\$/\1_IMAGE=\2:$NEW_VERSION/" .env | ||
|
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. Bug: The Suggested FixRemove Prompt for AI Agent |
||
| sed -i -e "s/^# Self-Hosted Sentry.*/# Self-Hosted Sentry $NEW_VERSION/" README.md | ||
|
|
||
| [ -z "$OLD_VERSION" ] || echo "Previous version: $OLD_VERSION" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,7 +93,7 @@ def get_internal_network(): | |
| # `COMPOSE_PROFILES` to `errors-only`. | ||
| # | ||
| # See https://develop.sentry.dev/self-hosted/optional-features/errors-only/ | ||
| SENTRY_SELF_HOSTED_ERRORS_ONLY = env("COMPOSE_PROFILES") != "feature-complete" | ||
| SENTRY_SELF_HOSTED_ERRORS_ONLY = "errors-only" in env("COMPOSE_PROFILES") | ||
|
|
||
| # When running in an air-gapped environment, set this to True to entirely disable | ||
| # external network calls and features that require Internet connectivity. | ||
|
|
@@ -448,6 +448,27 @@ def get_internal_network(): | |
| } | ||
| ) | ||
|
|
||
| ################ | ||
| # Chartcuterie # | ||
| ################ | ||
|
|
||
| # Chartcuterie is a service that generates charts outside browser environment. | ||
| # It is used pretty much to create charts for metric alerts for Slack integration. | ||
| # At the time of writing, there are no other use case that depends on Chartcuterie. | ||
| # | ||
| # To enable it, add `chartcuterie` to `COMPOSE_PROFILES` in your `.env` file. | ||
| # An example would be: | ||
| # ```env | ||
| # COMPOSE_PROFILES=feature-complete,chartcuterie | ||
|
Comment on lines
+459
to
+462
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. Bug: Install scripts use an exact string match for Suggested FixUpdate the conditional checks in Prompt for AI AgentAlso affects:
|
||
| # ``` | ||
|
|
||
| if "chartcuterie" in env("COMPOSE_PROFILES"): | ||
| SENTRY_FEATURES["organizations:metric-alert-chartcuterie"] = True | ||
| SENTRY_OPTIONS["chart-rendering.enabled"] = True | ||
| SENTRY_OPTIONS["chart-rendering.chartcuterie"] = { | ||
| "url": "http://chartcuterie:9090" | ||
| } | ||
|
|
||
| ####################### | ||
| # MaxMind Integration # | ||
| ####################### | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.