Skip to content

Instantly share code, notes, and snippets.

View mschurenko's full-sized avatar

Matt Schurenko mschurenko

View GitHub Profile
#!/bin/bash
set -e
yum -y --enablerepo=epel install tinyproxy
sed -i 's/^Port 8888/Port 80/' /etc/tinyproxy/tinyproxy.conf
sed -i '/^Allow/d' /etc/tinyproxy/tinyproxy.conf
service tinyproxy start
@mschurenko
mschurenko / statsrelay_check.py
Last active September 3, 2016 00:49
AttributeError when custom agent check run by datadog agent
# output in /var/log/datadog/collector.log
2016-09-03 00:25:46 UTC | ERROR | dd.collector | checks.statsrelay_check(__init__.py:767) | Check 'statsrelay_check' instance #0 failed
Traceback (most recent call last):
File "/opt/datadog-agent/agent/checks/__init__.py", line 750, in run
self.check(copy.deepcopy(instance))
File "/etc/dd-agent/checks.d/statsrelay_check.py", line 14, in check
metrics = fetch_metrics(host, port)
File "/etc/dd-agent/checks.d/statsrelay_check.py", line 30, in fetch_metrics
t.write('status\n\n')
File "/opt/datadog-agent/embedded/lib/python2.7/telnetlib.py", line 283, in write
[Main]
# The host of the Datadog intake server to send Agent data to
dd_url: https://app.datadoghq.com
# If you need a proxy to connect to the Internet, provide the settings here
# proxy_host: my-proxy.com
# proxy_port: 3128
# proxy_user: user
# proxy_password: password