forked from OpenTSDB/tcollector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example puppet manifest, link docs in README
Change-Id: I5b2ac5b3ead6f5cd703f64076f03d823bfff20a5
- Loading branch information
Dave Barr
committed
Jan 4, 2011
1 parent
3701ea9
commit db95f5f
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
tcollector is a framework to collect data points and store them in OpenTSDB. | ||
It allows you to write simple collectors that it'll run and monitor. It also | ||
handles the communication with the TSDs. | ||
|
||
For more info, see | ||
|
||
http://www.opentsdb.net/tcollector.html |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Example Puppet manifest for updating/starting tcollector | ||
# under puppet | ||
|
||
class tcollector { | ||
package { python: | ||
ensure => installed, | ||
} | ||
|
||
service { tcollector: | ||
ensure => running, | ||
require => [Package["python"], File["/usr/local/tcollector"]], | ||
start => "/usr/local/tcollector/startstop start", | ||
stop => "/usr/local/tcollector/startstop stop", | ||
restart => "/usr/local/tcollector/startstop restart", | ||
status => "/usr/local/tcollector/startstop status", | ||
subscribe => File["/usr/local/tcollector"], | ||
} | ||
|
||
file { ["/usr/local"]: | ||
owner => root, group => root, mode => 755, | ||
ensure => directory, | ||
} | ||
|
||
file { "/usr/local/tcollector": | ||
source => "puppet:///files/tcollector", | ||
owner => root, group => root, | ||
ensure => directory, | ||
recurse => true, | ||
ignore => '*.pyc', | ||
purge => true, | ||
force => true, | ||
require => File["/usr/local"], | ||
} | ||
} |