Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Barkdog is a tool to manage Datadog monitors.

License

NotificationsYou must be signed in to change notification settings

crewton/barkdog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Barkdog is a tool to manageDatadog monitors.

It defines Datadog monitors using Ruby DSL, and updates monitors according to DSL.

Gem VersionBuild Status

Notice

  • >= 0.1.3
    • Support Template

Installation

Add this line to your application's Gemfile:

gem'barkdog'

And then execute:

$ bundle

Or install it yourself as:

$ gem install barkdog

Usage

export BARKDOG_API_KEY=...export BARKDOG_APP_KEY=...barkdog -e -o Barkfilevi Barkfilebarkdog -a --dry-runbarkdog -a

Help

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

Barkfile example

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

Use template

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

Similar tools

About

Barkdog is a tool to manage Datadog monitors.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby100.0%

[8]ページ先頭

©2009-2025 Movatter.jp