Sensu-Plugins-github
Functionality
github-repo-metrics
Interacts with Github API to generate metrics about repo.
Files
- bin/github-repo-metrics.rb
Usage
Your github token must be placed in ~/.ssh/git_token, you should not be entring secure items on the commandline. The plugin will continue to be backwards compatible for a period but the ability to specify the token on the commandline will be removed in the 0.1.0 release.
Installation
Add the public key (if you haven’t already) as a trusted certificate
gem cert --add <(curl -Ls https://raw.githubusercontent.com/sensu-plugins/sensu-plugins.github.io/master/certs/sensu-plugins.pem)
gem install sensu-plugins-github -P MediumSecurity
You can also download the key from /certs/ within each repository.
Rubygems
gem install sensu-plugins-github
Bundler
Add sensu-plugins-github to your Gemfile and run bundle install or bundle update
Chef
Using the Sensu sensu_gem LWRP
sensu_gem 'sensu-plugins-github' do
('--prerelease')
version '0.0.1.alpha.1'
end
Using the Chef gem_package resource
gem_package 'sensu-plugins-github' do
('--prerelease')
version '0.0.1.alpha.1'
end