• This repository has been archived on 13/May/2022
  • Stars
    star
    2,092
  • Rank 22,081 (Top 0.5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 11 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Realtime server metrics in your browser

Scout Realtime

Stream realtime server and process metrics to your browser!

To get started:

  • On the server you want to monitor:
    • install the gem: gem install scout_realtime
    • start the daemon: scout_realtime start
  • On your local computer:
    • create an SSH tunnel to your server: ssh -NL 5555:localhost:5555 user@ip_or_hostname (where user@ip_or_hostname is the same as you usually use to SSH to your server)
    • Point your browser to http://localhost:5555

When you're done, you can stop the daemon with: scout_realtime stop

Why?

Scout realtime is a better top command: it gives you disk, memory, network, CPU, and process metrics. And it gives you smooth-flowing charts for everything. Troubleshooting is so much easier when you can see a few minutes worth of realtime data instead of watching individual numbers flash on your terminal window.

Questions & Troubleshooting

  • Something isn't working. Where's the log? By default, the log is written to ~/scout_realtime.log
  • Does my server need to have a public IP or domain name? Yes, you need a public IP or domain name to view Scout Realtime in your browser.
  • Installing the gem didn't work. You need Ruby 1.9.3+ on your server to run Scout Realtime. Try which ruby (to confirm you have Ruby), ruby -v (to show Ruby's version), and which gem to confirm you have Ruby gems (Ruby's package manager) available.
  • Can multiple people view the realtime stats? Yes. You'll probably want to open a port in your firewall instead of relying on the SSH tunnel for access: sudo iptables -A INPUT -p tcp --dport 5555 -j ACCEPT
  • The SSH tunnel is a pain. Is there a way to set up persistent access? Yes -- open a port in your firewall using the iptables command above.
    • Is that safe? It's as safe or safer than any any other service you have listening for HTTP traffic. The realtime web server only serves two endpoints, and there's nothing available at either of those endpoints that can be used in an attack.
  • 5555 is a strange number. Can I run it on a different port? Yes. scout_realtime --help for options.
  • I want to log written someplace other than my home directory. You can do that. See scout_realtime --help for options.
  • How much resources will this take if I leave it running? About the same CPU resources as htop. A bit more memory because it's written in Ruby.

Learn more at scoutapp.github.io/scout_realtime.

More Repositories

1

ruby_server_timing

Bring Rails server-side performance metrics πŸ“ˆ to Chrome's Developer Tools via the Server Timing API. Production Safeβ„’.
Ruby
516
star
2

scout_apm_ruby

ScoutAPM Ruby Agent. Supports Rails, Sinatra, Grape, Rack, and many other frameworks
Ruby
200
star
3

scout_apm_python

ScoutAPM Python Agent. Supports Django, Flask, and many other frameworks.
Python
69
star
4

elixir_plug_server_timing

Bring Elixir/Phoenix server-side performance metrics πŸ“ˆ to Chrome's Developer Tools via the Server Timing API. Production Safeβ„’.
Elixir
48
star
5

scout_apm_elixir

ScoutAPM Elixir Agent. Supports Phoenix and other frameworks.
Elixir
36
star
6

scout-apm-laravel

ScoutAPM PHP Agent for the Laravel Framework
22
star
7

roadmap

The public roadmap for Scout application monitoring.
16
star
8

scout-apm-php

ScoutAPM's Base PHP Agent - See README for Laravel, Symfony, and other framework support.
PHP
16
star
9

scout-apm-php-ext

Native Extension Component for ScoutAPM's PHP Agent
C
15
star
10

scout_statsd_rack

Rack application monitoring with StatsD
Ruby
9
star
11

scout_apm_node

ScoutAPM Agent for NodeJS. Supports Express and other frameworks
TypeScript
8
star
12

scout_dogstatsd_ruby

Report Rails app performance metrics (response time, error rate, throughput, etc) via the DogStatsD client
Ruby
7
star
13

profile_it_agent

A Ruby gem for detailed in-browser Rails profiling analysis. Metrics are reported to profileit.io.
Ruby
6
star
14

ollama-django

Python
3
star
15

load_test_rails_4

Rails application to benchmark APM Agents.
Ruby
3
star
16

core-agent-api

Instrument apps written in languages Scout doesn't officially support with the Core Agent API
3
star
17

mtls_example

A quick launch mTLS repository.
Shell
2
star
18

scout-apm-symfony-bundle

ScoutAPM Support for Symfony Applications
2
star
19

scout_apm_go

Early experiment in Golang instrumentation
Go
2
star
20

standalone_grape_example

Example of how to monitor a Standalone Grape API with Scout APM
Ruby
2
star
21

scout-apm-lumen

2
star
22

fieldbook

The Rails Performance Field Guide
CSS
2
star
23

scout_help_sphinx

Scout Help Docs powered by Sphinx
1
star
24

rails_demo

Rails app for demo contains some common performance issues
Ruby
1
star
25

scout_signalfx_ruby

Bring key health metrics for your Ruby on Rails app into SignalFx
Ruby
1
star