Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1.27 KB

README.md

File metadata and controls

25 lines (14 loc) · 1.27 KB

Instrumentation

Graphite demonstrates the instrumentation feature of Tyk whereby realtime statistics are pushed from the Dashboard, Gateway and Pump into a StatsD instance. For this example, the statistics can be seen in the Graphite Dashboard

Setup

Run the up.sh script with the instrumentation parameter:

./up.sh instrumentation

The StatsD, Carbon and Graphite applications are all deployed within a single container service called graphite.

Environment variable

The Docker environment variable INSTRUMENTATION_ENABLED is required to be set to 1 in the .env file. The bootstrap process will set this automatically when running the up.sh script.

Usage

Open the Graphite Dashboard. Explore the 'Metrics' tree, and click on items you are interested in seeing, this will add them to the graph. Most of the Tyk items are in stats and stats_counts. Try sending some requests through the Gateway to generate data.

You may need to send some test API requests to generate instrumentation data. Also, try clicking the refresh icon to reload the available metrics.