2023-11-13 18:20:27 +01:00
|
|
|
# @summary Prometheus monitoring of Akamai access logs
|
|
|
|
#
|
2024-02-06 21:40:19 +01:00
|
|
|
class kandra::prometheus::akamai {
|
|
|
|
include kandra::prometheus::base
|
|
|
|
include kandra::vector
|
2023-11-13 18:20:27 +01:00
|
|
|
include zulip::supervisor
|
|
|
|
|
2024-02-06 21:40:19 +01:00
|
|
|
$bin = $kandra::vector::bin
|
2023-11-13 18:20:27 +01:00
|
|
|
$conf = '/etc/vector.toml'
|
2024-01-25 21:42:21 +01:00
|
|
|
$pipelines = {
|
|
|
|
'static' => zulipsecret('secrets', 'akamai_static_sqs_url', ''),
|
|
|
|
'realm' => zulipsecret('secrets', 'akamai_realm_sqs_url', ''),
|
|
|
|
}
|
2023-11-13 18:20:27 +01:00
|
|
|
|
|
|
|
file { $conf:
|
|
|
|
ensure => file,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0644',
|
2024-02-06 21:40:19 +01:00
|
|
|
content => template('kandra/vector.toml.template.erb'),
|
2023-11-13 18:20:27 +01:00
|
|
|
}
|
|
|
|
file { "${zulip::common::supervisor_conf_dir}/prometheus_akamai_exporter.conf":
|
|
|
|
ensure => file,
|
|
|
|
require => [
|
|
|
|
User[zulip],
|
|
|
|
Package[supervisor],
|
|
|
|
File['/etc/vector.toml'],
|
|
|
|
Zulip::External_Dep['vector'],
|
|
|
|
],
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0644',
|
2024-02-06 21:40:19 +01:00
|
|
|
content => template('kandra/supervisor/conf.d/prometheus_akamai_exporter.conf.template.erb'),
|
2023-11-13 18:20:27 +01:00
|
|
|
notify => Service[supervisor],
|
|
|
|
}
|
|
|
|
}
|