This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/datadog-agent/embedded/bin/python | |
Python 2.7.12 (default, Sep 29 2016, 21:18:00) | |
[GCC 4.7.2] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import socket | |
>>> socket.getfqdn() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -o mib-jnx-if-extensions.txt http://www.juniper.net/techpubs/en_US/junos12.3/topics/reference/mibs/mib-jnx-if-extensions.txt | |
/opt/datadog-agent/bin/build-pysnmp-mib -o mib-jnx-if-extensions.py mib-jnx-if-extensions.txt | |
sudo su | |
mkdir /opt/mibs | |
cp -p mib-jnx-if-extensions.py /opt/mibs/JUNIPER-IF-MIB.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"requests": [ | |
{ | |
"q": "avg:aws.elb.httpcode_elb_5xx{*} by {host}.as_count()", | |
"type": "bars", | |
"conditional_formats": [], | |
"aggregator": "avg" | |
} | |
], | |
"viz": "timeseries" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{#is_alert}} | |
Redis memory usage is over 80 percent on Redis Production | |
@all @hipchat-DPMS | |
{{/is_alert}} | |
{{#is_warning}} | |
Redis memory usage is over 60 percent on Redis Production | |
@all @hipchat-DPMS | |
{{/is_warning}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
message = "{{#is_alert}} Load average is high! @slack-xyk_alert {{/is_alert}} {{#is_recovery}} Load average is OK @slack-xyk_alert {{/is_recovery}} " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example#1: | |
{{#is_alert}}sample error message @jay@datadog @slack-ops-test {{/is_alert}} | |
Example#2: | |
sample error message | |
{{#is_alert}} @jay@datadog @slack-ops-test @pagerduty {{/is_alert}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{#is_warning}}@slack-channel_name @someone-email{{is_warning}} | |
{{#is_alert}}@slack-channel_name @someone-email @pagerduty{{/is_alert}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
top(avg:aws.elb.latency{*} by {host}, 2, 'max', 'desc') * 1000 > 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo /etc/init.d/datadog-agent flare {case_id} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gettext: | |
sphinx-build -b gettext docs_all/source build/locale-all | |
sphinx-build -b gettext chef_master/source build/locale-master | |
@echo | |
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." | |
epub: | |
sphinx-build -b epub docs_all/source build/epub-all | |
sphinx-build -b epub chef_master/source build/epub-master | |
@echo |