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
ports: | |
- containerPort: 8125 | |
hostPort: 8125 | |
name: dogstatsdport | |
protocol: UDP |
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
Write-Host "Provisioning!" | |
Write-Host "Downlaoding DD-agent installation immage." | |
$image_url = "https://s3.amazonaws.com/ddagent-windows-stable/ddagent-cli-latest.msi" | |
$destin = ".\ddagent-cli-latest.msi" | |
(New-Object System.Net.WebClient).DownloadFile($image_url, $destin) | |
# find time for installation schedule, one minute from now | |
$nowp = (Get-Date).AddMinutes(1) |
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
{ | |
"viz": "query_value", | |
"requests": [ | |
{ | |
"q": "count_not_null(avg:system.cpu.system{*} by {host})", | |
"conditional_formats": [ | |
{ | |
"comparator": "<=", | |
"value": "1", | |
"palette": "white_on_red" |
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
Code I ran: | |
# queried the last week's worth of events from a test account | |
resp = api.Event.query(start=start_t, end=end_t, priority="normal") | |
for each in resp['events']: | |
print each | |
print '\n\n\n' |
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 datadog import initialize, api | |
options = { | |
'api_key': 'api_key', | |
'app_key': 'app_key', | |
'thresholds': {'critical': 100, 'warning': 80} | |
} | |
initialize(**options) | |
resp = api.Monitor.create( |