Commit Graph

29 Commits

Author SHA1 Message Date
Alfonso Acosta
c10c58459b Fix spelling mistakes 2016-08-18 17:48:45 +00:00
Krzesimir Nowak
2a0972653c Rewrite plugin readme
Give a bit more information about how to write a plugin.
2016-08-12 17:15:43 +02:00
Krzesimir Nowak
9e092f1a4a Switch to LatestMap-style node controls
This allows plugins to add controls to nodes that already have some
controls set by other plugin. Previously only the last plugin that
sets the controls in the node would have its controls visible. That
was because of NodeControls' Merge function that actually weren't
merging data from two inputs, but rather returning data that was newer
and discarding the older one.
2016-08-12 17:15:43 +02:00
Krzesimir Nowak
f17a995892 Marshal structs in the iowait example plugin
This is better than writing JSON strings by hand, which is
error-prone.
2016-08-12 17:03:42 +02:00
Krzesimir Nowak
69368af796 Make the iowait example plugin a controller too
It exposes a button that allows switching between showing an iowait
statistics and an idle statistics. When the button is pressed it
should be replaced with other button. The button is shown in the host
node.

This is a rather nasty case as it shows several problems:

- Button control races
  - The way the NodeControl currently works creates races between
    plugins adding buttons to the same node. This is because
    NodeControls are not really merged, but rather one of the two are
    chosen based on a NodeControls' timestamps, so the older one is
    thrown away entirely. In the end GUI can switch randomly between
    showing controls from one plugin or from another.

- Showing outdated statistics
  - When pressing the button to switch to show the other statistics,
    the old ones are still shown for several seconds.

- Slowness of the updates in GUI
  - Pressing the button yields no immediate reaction. Changes happen
    after several seconds. Probably related to the previous point.
2016-08-12 17:03:42 +02:00
Krzesimir Nowak
27e0550bd5 Run docker with sudo if necessary in iowait makefile
The solution is taken from the toplevel Makefile.
2016-08-12 17:03:42 +02:00
Krzesimir Nowak
c797e7ab0e Use consistent plugin ID in the http-requests plugin
The socket has the "http_requests.sock" filename, so ID should be
"http_requests", not "http-requests".
2016-08-12 17:03:42 +02:00
Viktor Sadovnikov
edb27e0935 weaveworks/scope#1507. moving minimesos installation instructions to site/installing.md file 2016-05-27 00:25:13 +02:00
Viktor Sadovnikov
b63d3374cb weaveworks/scope#1507. README.md: adding example for using latest minimesos.json 2016-05-26 10:22:23 +02:00
Viktor Sadovnikov
58f80920b3 weaveworks/scope#1507. disabling new version updates 2016-05-24 09:38:20 +02:00
Viktor Sadovnikov
cab38c8515 weaveworks/scope#1507. Adding Marathon JSON for launching on minimesos cluster 2016-05-16 18:58:19 +02:00
Alfonso Acosta
b745411ce1 ebpf plugin clarifications 2016-04-19 15:33:26 -04:00
Paul Bellamy
6591315ead Make iowait example get correct hostname when launced remotely 2016-04-19 10:39:35 +01:00
David Kaltschmidt
387a3c047e Fix plugins docs
* fix json highlighting on github
* added screenshot
* note about kernel version for bcc plugin
* sentence about seeing plugin in the UI
2016-04-19 11:22:42 +02:00
Alfonso Acosta
5f7c49197d Extend plugin documentation
* Add section to main README
* Add introduction to plugins-specific README
2016-04-15 14:23:52 +01:00
Alfonso Acosta
ef94818ab5 Add (admitedly redundant) clarification on kernel tasks 2016-04-13 11:18:37 +00:00
Alfonso Acosta
c838350668 eBPF plugin improvements
* Check that the protocol is TCP
* Support all HTTP methods
* Clear out tasks from table when they exit (required using task ids as table
  keys). A nice side effect of this is that we can tell apart tasks receiving 0
  req/second (i.e. tasks which currently aren't receiving any requests but were
  receiving requests at some point) from tasks which don't exist anymore.
  We report metrics fro the former.
* Simplify hash table key (no need to use a struct)
2016-04-13 04:22:06 +00:00
Paul Bellamy
3865e0fc77 use json template in iowait example, as it's clearer 2016-04-12 18:02:14 +01:00
Paul Bellamy
a9aaac00b7 typo in plugins readme 2016-04-12 17:44:41 +01:00
Paul Bellamy
72518e7036 iowait example plugin should remove the socket when done 2016-04-12 17:22:40 +01:00
Paul Bellamy
16c497d30a ditch plugin handshake endpoint 2016-04-12 17:22:39 +01:00
Alfonso Acosta
30bd6519d3 Review feedback: rename plugin directory 2016-04-12 17:22:39 +01:00
Alfonso Acosta
dfa93fe2f1 Review feedback 2016-04-12 17:22:39 +01:00
Alfonso Acosta
efd62ac5b3 Add dependencies for building docker image 2016-04-12 17:22:39 +01:00
Alfonso Acosta
2da13da6f7 ebpf plugin to gather http-request rate per PID 2016-04-12 17:22:38 +01:00
Paul Bellamy
7632e0b3c5 Adding support for plugins, with basic example of iowait, and ebpf
Squash of:
* Include plugins in the report
* show plugin list in the UI
* moving metric and metadata templates into the probe reports
* update js for prime -> priority
* added retry to plugin handshake
* added iowait plugin
* review feedback
* plugin documentation
2016-04-12 17:22:14 +01:00
pidster
7e51862b32 Improvements to the compose file examples, using variables 2016-03-08 17:06:13 +00:00
pidster
911eac2e26 Rename example files 2016-03-08 16:46:10 +00:00
pidster
930727f252 Example starting Scope probe with Docker Compose. 2016-03-08 16:43:04 +00:00