Skip to content

Add Crons #1993

Closed
Closed

Description

@hubertdeng123

Problem Statement

Sentry has a Cron Monitoring feature in beta. We'd like to make this available to everyone.

Solution Brainstorm

Once Crons goes to GA, we'll make Crons generally available for self-hosted

See Replays in #1990 for a template.

Activity

  1. hubertdeng123 commented on Feb 28, 2023

    @hubertdeng123
    ContributorAuthor

    For now, users can enable it by editing their sentry.conf.py file. In SENTRY_FEATURES, add the "organizations:monitors" flag. This will look something like this:

    SENTRY_FEATURES.update(
        {
            feature: True
            for feature in (
                "organizations:discover",
                ...
                "organizations:monitors",
            )
        }
    )
    
  2. chadwhitacre commented on Feb 28, 2023

    @chadwhitacre
    Contributor

    @hubertdeng123 Can you post this back in that slack thread wherever it was if you haven't?

  3. hubertdeng123 commented on Feb 28, 2023

    @hubertdeng123
    ContributorAuthor

    already posted there 😃

  4. changed the title [-]Enable Crons for Self-hosted[/-] [+]Add Crons[/+] on Mar 1, 2023
  5. viktor2097 commented on May 3, 2023

    @viktor2097

    For now, users can enable it by editing their sentry.conf.py file. In SENTRY_FEATURES, add the "organizations:monitors" flag. This will look something like this:

    SENTRY_FEATURES.update(
        {
            feature: True
            for feature in (
                "organizations:discover",
                ...
                "organizations:monitors",
            )
        }
    )
    

    Do we have an equivalent to turn on the new profiling feature?

  6. chadwhitacre commented on May 3, 2023

    @chadwhitacre
    Contributor

    Do we have an equivalent to turn on the new profiling feature?

    If so let's post it on #1838.

  7. aldy505 commented on May 3, 2023

    @aldy505
    Collaborator

    Do we have an equivalent to turn on the new profiling feature?

    @viktor2097 Not yet. At least from my understanding, profiling feature requires additional backend to be added to the docker compose file and set the profiling backend address on the sentry container. Right now, the vroom is not published on the Docker Hub yet, so we're all waiting on that.

  8. aldy505 commented on Aug 9, 2023

    @aldy505
    Collaborator

    @hubertdeng123 any idea when this will be on GA?

  9. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Aug 9, 2023
  10. hubertdeng123 commented on Aug 9, 2023

    @hubertdeng123
    ContributorAuthor

    GA likely will not happen anytime soon. Optimistically end of this year, but also potentially next year.

  11. 1 remaining item

  12. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀on Aug 9, 2023
  13. aldy505 commented on Aug 12, 2023

    @aldy505
    Collaborator

    For those brave souls who wants to activate Cron feature:

    On sentry/sentry.conf.py:

    # Add this line
    SENTRY_FEATURES["organizations:monitors"] = True

    On docker-compose.yml: (yes you have to deal with changing this everytime you upgrade Sentry)

    services:
      # Add new container for Cron
      ingest-monitors:
        <<: *sentry_defaults
        command: run consumer --no-strict-offset-reset ingest-monitors --consumer-group ingest-monitors

    On install/create-kafka-topics.sh, add "ingest-monitors":

    NEEDED_KAFKA_TOPICS="ingest-attachments ingest-transactions ingest-events ingest-replay-recordings profiles ingest-monitors"

    Then do ./install.sh all over again.

  14. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Aug 12, 2023
  15. hubertdeng123 commented on Aug 14, 2023

    @hubertdeng123
    ContributorAuthor

    Thanks for the guide here!

  16. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀on Aug 14, 2023
  17. kohenkatz commented on Nov 9, 2023

    @kohenkatz
    Contributor

    I enabled this around 6 weeks ago, and since then kafka has been consuming much more system resources than it used to - enough to sometimes make the whole server (6 vCPU, 16GB RAM) stop responding. I think I'm going to have to turn it off again.

  18. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Nov 9, 2023
  19. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀on Nov 9, 2023
  20. hubertdeng123 commented on Jan 16, 2024

    @hubertdeng123
    ContributorAuthor

    With the Crons GA, we should enable this for all self-hosted users.

  21. locked and limited conversation to collaborators on Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions