Skip to content

sean-/circonus-reaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

circonus-reaper

The circonus-reaper:

  • deactivates check bundles that were targeting hosts that are no longer present in Consul but are known to Circonus
  • deactivates individual metrics in check bundles that belong to Nomad allocations that are no longer scheduled

Installation

go get -u github.com/sean-/circonus-reaper

Usage

Usage of circonus-reaper:
  -circonus-api-key string
    	Circonus API Key (CIRCONUS_API_KEY)
  -circonus-app-name string
    	Name to use as the application name in the Circonus API Token UI (default "reaper")
  -consul-addr string
    	Consul Agent Address (default "127.0.0.1:8500")
  -dry-run
    	Do not make any actual changes
  -exclude-regexp value
    	Regexp for a targets to exclude (may be set more than once)
  -exclude-target value
    	Targets to exclude (may be set more than once)
  -nomad-addr string
    	Nomad Agent Address (default "http://127.0.0.1:4646")

Example Usage

$ circonus-reaper \
    -consul-addr=consul.service.consul:8500 \
    -exclude-target=127.0.0.1 \
    -exclude-target=rabbitmq.service.consul \
    -exclude-regexp='.+\._(aws|caql)$' \
    -nomad-addr=http://nomad.service.consul:4646/

About

Reap inactive Circonus Metrics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published