2023-11-13 18:20:27 +01:00
|
|
|
# @summary Prometheus monitoring of Akamai access logs
|
|
|
|
#
|
|
|
|
class zulip_ops::prometheus::akamai {
|
|
|
|
include zulip_ops::prometheus::base
|
|
|
|
include zulip_ops::vector
|
|
|
|
include zulip::supervisor
|
|
|
|
|
|
|
|
$bin = $zulip_ops::vector::bin
|
|
|
|
$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',
|
|
|
|
content => template('zulip_ops/vector.toml.template.erb'),
|
|
|
|
}
|
|
|
|
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',
|
|
|
|
content => template('zulip_ops/supervisor/conf.d/prometheus_akamai_exporter.conf.template.erb'),
|
|
|
|
notify => Service[supervisor],
|
|
|
|
}
|
|
|
|
}
|