Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7450563
alerts.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
622 B
Subscribers
None
alerts.pp
View Options
# Class: prometheus::alerts
#
# This module manages prometheus alerts for prometheus
#
# [*location*]
# Whether to create the alert file for prometheus
#
# [*alerts*]
# Array of alerts (see README)
#
class
prometheus
::
alerts
(
String
$location,
Array
$alerts,
String
$alertfile_name
=
'alert.rules'
)
inherits
prometheus
::
params
{
if
$alerts
!=
[]
{
file
{
"${location}/${alertfile_name}"
:
ensure
=>
'file'
,
owner
=>
$prometheus::user,
group
=>
$prometheus::group,
content
=>
epp
(
"${module_name}/alerts.epp"
),
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 17, 7:55 AM (5 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3287692
Attached To
R141 puppet-puppet-prometheus
Event Timeline
Log In to Comment