TYK_INSTRUMENTATION=1
and then configure the statsd_connection_string
field for each component.
statsd_connection_string
is a formatted string that specifies how to connect to the StatsD server. It typically includes information such as the host address, port number, and sometimes additional configuration options.
Optionally you can set statsd_prefix
to a custom prefix value that will be applied to each metric generated by Tyk. For example, you can configure separate prefixes for your production and staging environments to make it easier to differentiate between the metrics in your analysis tool.
gauges.<prefix>.Load.rps
(requests per second)counters.<prefix>.SystemAPICall.called.count
(calls count) and timers.<prefix>.SystemAPICall.success
(response time)counters.<prefix>.SystemAPICall.SystemCallComplete.count
(requests count), counters.<prefix>.DashSystemAPIError.*
(api error reporting)counters.<prefix>.record.count
(number of records processed by pump)tyk.conf
to enable the instrumentation and generation of data: