Add statsd config + collectd
This commit is contained in:
parent
ce3ecdc90f
commit
e98417f99a
4 changed files with 1669 additions and 1 deletions
1649
modules/rhizo_base/files/etc/collectd/collectd.conf
Normal file
1649
modules/rhizo_base/files/etc/collectd/collectd.conf
Normal file
File diff suppressed because it is too large
Load diff
|
@ -702,6 +702,14 @@ schedule { 'never':
|
||||||
require => Package['apcupsd'],
|
require => Package['apcupsd'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $osmo_stack == "split" {
|
||||||
|
file { '/etc/collectd/collectd.conf':
|
||||||
|
ensure => present,
|
||||||
|
source => 'puppet:///modules/rhizo_base/etc/collectd/collectd.conf',
|
||||||
|
require => Package['collectd'],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
file { '/etc/default/apcupsd':
|
file { '/etc/default/apcupsd':
|
||||||
ensure => 'present',
|
ensure => 'present',
|
||||||
content => template('rhizo_base/apcupsd.erb'),
|
content => template('rhizo_base/apcupsd.erb'),
|
||||||
|
|
|
@ -38,6 +38,11 @@ class rhizo_base::osmocom {
|
||||||
ensure => 'absent'
|
ensure => 'absent'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package { 'collectd':
|
||||||
|
ensure => 'installed',
|
||||||
|
install_options => ['--no-install-recommends'],
|
||||||
|
}
|
||||||
|
|
||||||
package { [ 'osmo-stp', 'osmo-mgw', 'osmo-sgsn',
|
package { [ 'osmo-stp', 'osmo-mgw', 'osmo-sgsn',
|
||||||
'python3-osmopy-libs', 'python3-osmopy-utils' ]:
|
'python3-osmopy-libs', 'python3-osmopy-utils' ]:
|
||||||
ensure => 'installed',
|
ensure => 'installed',
|
||||||
|
|
|
@ -48,7 +48,13 @@ log stderr
|
||||||
logging level ljibuf notice
|
logging level ljibuf notice
|
||||||
logging level lrspro notice
|
logging level lrspro notice
|
||||||
!
|
!
|
||||||
stats interval 5
|
stats interval 10
|
||||||
|
stats reporter statsd
|
||||||
|
remote-ip 127.0.0.1
|
||||||
|
remote-port 8125
|
||||||
|
level global
|
||||||
|
no prefix
|
||||||
|
enable
|
||||||
!
|
!
|
||||||
line vty
|
line vty
|
||||||
no login
|
no login
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue