Skip to content

Conversation

untitaker
Copy link
Member

@untitaker untitaker commented Aug 6, 2025

ref STREAM-324

  • The producer_name tag identifies a particular producer instance in
    Relay. It's almost identical to broker_name, but broker_name is not
    generally available because in theory one producer can talk to many
    brokers (though relay doesn't do that), and some statistics are
    related to the producer's internal datastructures and don't have that
    tag.

    Also, we're going to add this tag to other producers in other
    services (and we have many producers in getsentry talking to a
    single broker there), so it pays off to be consistent. With a bit
    of luck we might even have a proper generic dashboard for all of
    our producers in our entire infrastructure..
    someday.

  • Add a few metrics that we think might be useful to see if Relay is
    impacted by a broker being unhealthy.

Aside, it would be really nice if Relay moved to rust-arroyo for
producing. I'm implementing the same metrics there. Or maybe not its
entire producer wrapper but at least reusing its stats callback.

ref STREAM-324

* The producer_name tag identifies a particular producer instance in
  Relay. It's almost identical to broker_name, but broker_name is not
  generally available because in theory one producer can talk to many
  brokers (though relay doesn't do that), and some statistics are
  related to the producer's internal datastructures and don't have that
  tag.

  Also, we're going to add this tag to other producers in other
  services. With a bit of luck we might even have a proper generic
  dashboard for all of our producers in our entire infrastructure..
  someday.

* Add a few metrics that we think might be useful to see if Relay is
  impacted by a broker being unhealthy.

Aside, it would be really nice if Relay moved to rust-arroyo for
producing. I'm implementing the same metrics there. Or maybe not its
entire producer wrapper but at least reusing its stats callback.
@untitaker untitaker requested a review from a team as a code owner August 6, 2025 12:04
Copy link

linear bot commented Aug 6, 2025

cursor[bot]

This comment was marked as outdated.

@untitaker untitaker requested a review from Dav1dde August 6, 2025 13:15
@untitaker
Copy link
Member Author

@Dav1dde asking for another review because I decided to align some additional metrics with arroyo. if you rely on these metric names in alerts we can also align arroyo with relay instead.

cursor[bot]

This comment was marked as outdated.

untitaker added a commit to getsentry/arroyo that referenced this pull request Aug 6, 2025
@Dav1dde
Copy link
Member

Dav1dde commented Aug 6, 2025

if you rely on these metric names in alerts we can also align arroyo with relay instead.

I don't think so, but we do have them in the Relay dashboard, would be appreciated if you can take a look and update them if necessary.

Otherwise regarding the metrics and their values, I'll just leave that to you, you're the expert on that.

@untitaker untitaker requested a review from a team August 6, 2025 14:14
@untitaker untitaker added this pull request to the merge queue Aug 7, 2025
untitaker added a commit to getsentry/arroyo that referenced this pull request Aug 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 7, 2025
@untitaker untitaker added this pull request to the merge queue Aug 12, 2025
Merged via the queue into master with commit 7958273 Aug 12, 2025
29 checks passed
@untitaker untitaker deleted the producer-name-tag branch August 12, 2025 15:11
untitaker added a commit to getsentry/sentry that referenced this pull request Aug 13, 2025
ref STREAM-324

see getsentry/arroyo#479
and getsentry/relay#5031

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
priscilawebdev pushed a commit to getsentry/sentry that referenced this pull request Aug 25, 2025
ref STREAM-324

see getsentry/arroyo#479
and getsentry/relay#5031

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants