Adding Wavefont tracing (using Proxy)
Tito now sends traces to Wavefront (via proxy) with tags for home_address and work_address.
This is based on a Python script 'sendTraces.py' which sequentially reports the spans and which is launched by GetTrafficData.php.
As this is for demo purpose, all spans are fake but 'Google API calls' which is based on the real duration of the call.
Prerequisites (see below for the install and configuration script)
- Wavefront Proxy
- Python3
- "sendTraces.py" must be executable
- 'PROXY_NAME' and 'PROXY_PORT' must be configured in /etc/sysconfig/httpd
- Enable scripts execution in /etc/httpd/conf/httpd.conf for <Directory "/var/www/html">
Wavefront Proxy
docker run -d \
-e WAVEFRONT_URL=https://vmware.wavefront.com/api/ \
-e WAVEFRONT_TOKEN=7xxxxxxxxxxxxxxxxxxxxxxxxxxxx5 \
-e JAVA_HEAP_USAGE=512m \
-e WAVEFRONT_PROXY_ARGS="--traceListenerPorts 30000 --histogramDistListenerPorts 40000" \
-p 2878:2878 \
-p 30000:30000 \
-p 40000:40000 \
-p 4242:4242 \
wavefronthq/proxy:latest