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

hackweek: Relay dashboard #2422

Merged
merged 54 commits into from
Sep 8, 2023
Merged

hackweek: Relay dashboard #2422

merged 54 commits into from
Sep 8, 2023

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented Aug 21, 2023

Add Web UI Dashboard to Relay.

TODOs

Preview Give feedback

Bugs

Preview Give feedback

How this looks like now

Currently we can see:

  • all statsd metrics - the graphs will appear as soon as there are any data produced
  • the logs will be also shown in the UI and automatically will be scrolled to the newest ones
image

@jan-auer jan-auer changed the title feat(server): Admin dashboard hackweek: Admin dashboard Aug 25, 2023
Copy link
Contributor

@olksdr olksdr left a comment

Choose a reason for hiding this comment

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

Let's 🚢 it!

relay-admin-dashboard/Cargo.toml Outdated Show resolved Hide resolved
relay-admin-dashboard/README.md Outdated Show resolved Hide resolved
relay-admin-dashboard/src/main.rs Outdated Show resolved Hide resolved
relay-log/src/setup.rs Outdated Show resolved Hide resolved
if let Ok(Ok(bytes)) = spawn_blocking(move || rx.recv()).await {
let message = String::from_utf8_lossy(&bytes).to_string();
let res = socket.send(message.into()).await;
if res.is_err() {
Copy link
Contributor

Choose a reason for hiding this comment

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

The error happens only on client disconnect or is there a specific error we should be looking for?

Copy link
Member Author

Choose a reason for hiding this comment

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

I copied this straight from the example so it Should Be Fine™.

@jjbayer jjbayer changed the title hackweek: Admin dashboard hackweek: Relay dashboard Sep 6, 2023
@jjbayer jjbayer marked this pull request as ready for review September 7, 2023 07:32
@jjbayer jjbayer requested a review from a team September 7, 2023 07:32
@jjbayer jjbayer merged commit 308005b into master Sep 8, 2023
@jjbayer jjbayer deleted the feat/admin-dashboard branch September 8, 2023 08:28
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.

3 participants