forked fromcodenize-tools/barkdog
- Notifications
You must be signed in to change notification settings - Fork0
Barkdog is a tool to manage Datadog monitors.
License
NotificationsYou must be signed in to change notification settings
crewton/barkdog
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Barkdog is a tool to manageDatadog monitors.
It defines Datadog monitors using Ruby DSL, and updates monitors according to DSL.
>= 0.1.3
- Support Template
Add this line to your application's Gemfile:
gem'barkdog'
And then execute:
$ bundle
Or install it yourself as:
$ gem install barkdog
export BARKDOG_API_KEY=...export BARKDOG_APP_KEY=...barkdog -e -o Barkfilevi Barkfilebarkdog -a --dry-runbarkdog -a
Usage: barkdog [options] --api-key API_KEY --app-key APP_KEY -a, --apply -f, --file FILE --dry-run --ignore-silenced -e, --export -o, --output FILE --no-color --no-delete --debug --datadog-timeout TIMEOUT -h, --help
monitor"Check load avg",:type=>"metric alert"doquery"avg(last_5m):avg:ddstat.load_avg.1m{host:i-XXXXXXXX} > 1"message"@winebarrel@example.net"optionsdolockedfalsenew_host_delay300notify_no_datatrueno_data_timeframe2notify_audittruesilenced({})endend
template"cpu template"doquery"avg(last_5m):avg:#{context.target}.load_avg.1m{host:i-XXXXXXXX} > 1"messagecontext.messageoptionsdolockedfalsenew_host_delay300notify_no_datatrueno_data_timeframe2notify_audittruesilenced({})endendmonitor"Check load avg",:type=>"metric alert"docontext.message="@winebarrel@example.net"include_template"cpu template",:target=>"ddstat"endtemplate"basic monitor"domonitor"#{context.target} cpu"doquery"avg(last_5m):avg:#{context.target}.load_avg.1m{host:i-XXXXXXXX} > 1" ...end# any other monitormonitor ...end"myhost".tapdo |host|include_template"basic monitor",:target=>hostinclude_template"mysql monitor",:target=>host ...end
About
Barkdog is a tool to manage Datadog monitors.
Resources
License
Stars
Watchers
Forks
Packages0
No packages published
Languages
- Ruby100.0%