Skip to content
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

chore: add some basic instrumentation to Node WebSocket server #14354

Merged
merged 3 commits into from Apr 26, 2021

Conversation

benjreinhart
Copy link
Contributor

@benjreinhart benjreinhart commented Apr 26, 2021

SUMMARY

This adds some basic instrumentation to the node WebSocket server. For now, adding two counters:

  1. Number of connected clients
  2. Number of times the server fails to deliver and event to a client

TEST PLAN

Unit tests, manual

@etr2460
Copy link
Member

etr2460 commented Apr 26, 2021

I'm curious, what's the value of Prometheus over statsd here? The main superset app uses statsd for metrics and counters currently, so I wonder if we should use the same protocol for both apps

@benjreinhart
Copy link
Contributor Author

@etr2460 there had been talks on the Preset side around moving to Prometheus given a couple of problems we ran into with statsd. @craig-rueda has more context on those.

I agree that being consistent makes sense, so I think for now we can revert back to statsd.

@etr2460
Copy link
Member

etr2460 commented Apr 26, 2021

Makes sense. If we want to switch, i think that seems SIP worthy. But would love to learn more about the issues you've been having!

Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for adding instrumentation!

@craig-rueda craig-rueda merged commit 8dd0620 into apache:master Apr 26, 2021
@craig-rueda craig-rueda deleted the benjreinhart/ws-statsd branch April 26, 2021 21:05
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
…e#14354)

* chore: add some basic instrumentation

* Switch to statsd using hot-shots

* Cleanup a few leftover bits
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/M 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants