You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 24, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+39-3Lines changed: 39 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,49 @@ You need `/sys/kernel/debug/` in order to be able to build the eBPF program gene
11
11
12
12
## How to Run Scope HTTP Statistics Plugin
13
13
14
+
This plugin requires:
15
+
16
+
* kernel version [>=4.1](https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md) running on the host to be able to attach eBPF to kprobes.
17
+
* Kernel build directory to be available in `/lib/modules/<kernel-version>/build`. Depending on your distribution you might need to add this symlink: `ln -s /lib/modules/<kernel-version>/build /lib/modules/<kernel-version>/source`.
18
+
19
+
The Scope HTTP Statistics plugin works with `Weave Scope`, you need to have Scope up and running before you can use it. If the running plugin has been registered by Scope, you will see it in the list of `PLUGINS` in the bottom right of the UI (see the rectangle in the above figure).
20
+
21
+
### Using a pre-built Docker image
22
+
23
+
If you want to make sure of running the latest available version of the plugin, you can pull the image from docker hub.
**Note** If Scope HTTP Statistics plugin has been registered by Scope, you will see it in the list of `PLUGINS` in the bottom right of the UI (see the rectangle in the above figure).
54
+
## Testing
19
55
20
-
*In another terminal, run an `nginx` instance `docker run --rm --name http-statistics-nginx -p 8080:80 nginx`
56
+
*Run an `nginx` instance `docker run --rm --name http-statistics-nginx -p 8080:80 nginx`
21
57
* Run `sh test-http-statistics.sh`, press Ctrl+c to terminate the test.
22
58
* Go to the Weave Scope UI [http://localhost:4040](http://localhost:4040).
0 commit comments