Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392250
prometheus.yaml.erb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
879 B
Subscribers
None
prometheus.yaml.erb
View Options
<%
require
'yaml'
-%>
<%
global_config
=
scope
.
lookupvar
(
'::prometheus::global_config'
)
-%>
<%
rule_files
=
scope
.
lookupvar
(
'::prometheus::rule_files'
)
-%>
<%
scrape_configs
=
scope
.
lookupvar
(
'::prometheus::scrape_configs'
)
-%>
<%
remote_read_configs
=
scope
.
lookupvar
(
'::prometheus::remote_read_configs'
)
-%>
<%
full_config
=
{
'global'
=>
global_config
,
'rule_files'
=>
rule_files
,
'scrape_configs'
=>
scrape_configs
,
'alerting'
=>
{
'alert_relabel_configs'
=>
scope
.
lookupvar
(
'::prometheus::alert_relabel_config'
),
'alertmanagers'
=>
scope
.
lookupvar
(
'::prometheus::alertmanagers_config'
),
},
}
if
@prometheus_v2
# this variable has to be absent on 1.X, so we filter using the helper variable
full_config
[
'remote_read'
]
=
remote_read_configs
end
-%>
<%=
full_config
.
to_yaml
(
options
=
{
:line_width
=>
-
1
})
.
gsub
(
/source_labels: ".+?"/
)
{
|
x
|
x
.
gsub
(
'"'
,
''
)
}
-%>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 6:56 PM (10 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3281379
Attached To
R141 puppet-puppet-prometheus
Event Timeline
Log In to Comment