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
instances: | |
# location of tomcat | |
- host: 10.112.9.6 | |
port: 9999 | |
max_returned_metrics: 9500 | |
# user: username | |
# password: password | |
# process_name_regex: .*process_name.* # Instead of specifying a host, and port. The agent can connect using the attach api. | |
# # This requires the JDK to be installed and the path to tools.jar to be set below. | |
# tools_jar_path: /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar # To be set when process_name_regex is set |
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
import datetime | |
import time | |
import requests | |
import simplejson | |
from datadog import initialize, api | |
""" | |
This script gives a real time report on ec2 and Datadog agent host usage | |
from multiple organizations and reports them up to the 'main' parent account. |
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
confd: | |
docker.yaml: |- | |
init_config: | |
instances: | |
- url: "unix://var/run/docker.sock" | |
collect_events: false |
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
$pwd = convertto-securestring "Admin!" -asplaintext -force | |
$cred=new-object -typename System.Management.Automation.PSCredential -argumentlist ".\reutadmin",$pwd | |
$windows_vms = @("192.168.86.66") | |
$install_datadog = { | |
& msiexec /qn /i datadog-agent-6-latest.amd64.msi APIKEY="DATADOG_API_KEY" HOSTNAME="my_hostname" TAGS="mytag1,mytag2" | |
} |
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
- hosts: windows | |
roles: | |
- { role: Datadog.datadog } | |
vars: | |
datadog_api_key: [DATADOG_API_KEY] |
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
- hosts: windows | |
roles: | |
- { role: Datadog.datadog } | |
vars: | |
datadog_api_key: [DATADOG_API_KEY] |
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
#!/bin/bash | |
# Set up CentOS to act as an Ansible controller | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
# ensure CentOS all up-to-date | |
yum update -y | |
# epel is to be used for pip | |
yum install epel-release -y |
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
$url = "https://notepad-plus-plus.org/repository/7.x/7.6.6/npp.7.6.6.Installer.exe" | |
$outpath = "C:/notepad++.exe" | |
$wc = New-Object System.Net.WebClient | |
$wc.DownloadFile($url, $outpath) | |
$args = @("Comma","Separated","Arguments") | |
Start-Process -Filepath "C:/notepad++.exe" -ArgumentList $args |
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
- hosts: windows | |
tasks: | |
- name: get dotnet tracer | |
win_get_url: | |
url: 'https://github.com/DataDog/dd-trace-dotnet/releases/download/v1.1.0/DatadogDotNetTracing-1.1.0-x64.msi' | |
dest: 'C:\datadog_dotnet_v1.1.0.msi' | |
- name: install datadog tracer msi file | |
win_msi: |
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
from checks import AgentCheck | |
from datetime import tzinfo, timedelta | |
import datetime | |
import requests | |
import json | |
import calendar | |
class UTC(tzinfo): | |
def utcoffset(self, dt): | |
return timedelta(0) |