ebpf plugin to gather http-request rate per PID

This commit is contained in:
Alfonso Acosta
2016-04-11 01:56:29 +00:00
committed by Paul Bellamy
parent 333d32fbe5
commit 2da13da6f7
4 changed files with 292 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
FROM ubuntu:wily
MAINTAINER Weaveworks Inc <help@weave.works>
LABEL works.weave.role=system
# Install BCC
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D4284CDD
RUN echo "deb http://52.8.15.63/apt trusty main" | tee /etc/apt/sources.list.d/iovisor.list
RUN apt-get update && apt-get install -y libbcc libbcc-examples python-bcc
# Add our plugin
ADD ./http-requests.c ./http-requests.py /usr/bin/
ENTRYPOINT ["/usr/bin/http-requests.py"]