This repo contains a Datadog agent check to monitor Tinyproxy. The check will publish one service check to Datadog, called tinyproxy
. It also records a handful of custom metrics about what the Tinyproxy process is doing.
- Configure Tinyproxy to report stats (assuming Tinyproxy is already installed):
- Copy
stats.json
to/usr/share/tinyproxy
. - In
/etc/tinyproxy.conf
, update theStatFile
directive to point to/usr/share/tinyproxy/stats.json
. Also make a note of theStatHost
directive, if it's been changed from the default oftinyproxy.stats
.
- Copy
- Configure the Datadog Agent to collect stats (assuming the agent is already installed):
- Copy
tinyproxy.py
to/etc/datadog-agent/checks.d/
. - Copy
tinyproxy.yaml
to/etc/datadog-agent/conf.d/
. - If you want to monitor a Tinyproxy instance other than
localhost:8888
, change the instance settings in the YAML file. Likewise, if Tinyproxy'sStatHost
doesn't match the default, you should change that here. - Restart the
datadog-agent
service.
- Copy
tinyproxy.response_time
: gauge, response time of the stats request, in seconds.tinyproxy.opens
: gauge, number of open connections.tinyproxy.reqs
: monotonic counter, number of requests processed.tinyproxy.badconns
: monotonic counter, number of bad connections.tinyproxy.deniedconns
: monotonic counter, number of denied connections.tinyproxy.refusedconns
: monotonic counter, number of refused connections.
All monotonic counters reset when the tinyproxy
process restarts.