/appscope

Primary LanguageCApache License 2.0Apache-2.0

Build & Test

AppScope

AppScope is an open source, runtime-agnostic instrumentation utility for any Linux command or application. It helps users explore, understand, and gain visibility with no code modification.

AppScope provides the fine-grained observability of a proxy/service mesh, without the latency of a sidecar. It emits APM-like metric and event data, in open formats, to existing log and metric tools.

It’s like strace meets tcpdump – but with consumable output for events like file access, DNS, and network activity, and StatsD-style metrics for applications. AppScope can also look inside encrypted payloads, offering WAF-like visibility without proxying traffic.

This README gets you up and scoping ASAP.

Get Started

Before you begin, make sure that your environment meets AppScope requirements.

Next, you can obtain AppScope three ways:

  • Get the container image from Docker Hub and run AppScope in it.
  • Check out the code from this project, then build and run AppScope in your Linux environment.
  • Get the binaries from the CDN, and run them in your Linux environment.

The container image at Docker Hub and binaries at the CDN are updated for each new release of this project.

Once you have downloaded and/or built AppScope, try some simple commands to verify that AppScope is available:

  • Scope a new process like scope ps -ef. Try substituting top or curl https://google.com for ps -ef. Run scope events to see the results.

  • Attach to a process that is already running. Run ps -ef and find the process ID (PID) of a command or program you would like to scope. Attach to and scope the running process with scope attach PID. Run scope dash to watch events live.

See the website docs for the full story of how to use AppScope.

Build

AppScope is not built or distributed like most traditional Linux software.

  • Insofar as possible, we want AppScope binaries to be Build Once, Run Anywhere. To approach this goal, we build with a version of glibc that is (1) recent enough that the resulting binary contains references to versions of functions in the glibc library that are still supported in the latest glibc, yet (2) old enough that the binaries can run on a wide range of Linux platforms without having to rebuild locally. .
  • We don't build OS installation packages like DEBs or RPMs. This way, when you want to investigate a running system or build a custom container image, you can simply drop AppScope in and use it.

Pull a copy of the code with:

git clone https://github.com/criblio/appscope.git
cd appscope

If you are on Ubuntu 18.04, install the dependencies and build the project with:

./scope_env.sh build

If you are on a platform other than Ubuntu 18.04, or prefer not to install the dependencies, ensure that docker and make are installed, then build in a Docker container with:

make docker-build

Either way, the resulting binaries will be in lib/linux/libscope.so, bin/linux/scope, and bin/linux/ldscope.

Keep Going

On the AppScope Website:

The content on that site is built from the website/ directory in this project.

Elsewhere, you can:

  • Complete the AppScope Fundamentals sandbox, a tutorial that takes about 30 minutes.
  • See our Design Docs in the docs/ directory in this repo if you're thinking about contributing to this project, or if you just want to understand the internal logic of AppScope.
  • Join the Cribl Community on Slack. The #appscope channel is where you'll find developers who contribute to this project.

Please submit any feature requests and defect reports at https://github.com/criblio/appscope.