1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'modules/profile/manifests/mariadb/monitor/prometheus.pp', line 1
class profile::mariadb::monitor::prometheus (
$socket = '/run/mysqld/mysqld.sock',
) {
include passwords::prometheus
require profile::mariadb::mysql_role
if $profile::mariadb::mysql_role::role == 'standalone' {
$enable_heartbeat_monitoring = false
} else {
$enable_heartbeat_monitoring = true
}
prometheus::mysqld_exporter { 'default':
client_password => $passwords::prometheus::db_pass,
client_socket => $socket,
enable_heartbeat_monitoring => $enable_heartbeat_monitoring,
}
}
|