Skip to content

Instantly share code, notes, and snippets.

Matt Schurenko mschurenko

View GitHub Profile
View gist:27a132f8f16da16295a58aed9b6fd311
#!/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 Sep 3, 2016
AttributeError when custom agent check run by datadog agent
View statsrelay_check.py
# 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
View gist:9316501be0c093a62a530678feeb3a04
[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
You can’t perform that action at this time.