Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9339190
export_scrape_config.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
522 B
Subscribers
None
export_scrape_config.pp
View Options
# Export a scrape config to the configured prometheus server
define
profile
::
prometheus
::
export_scrape_config
(
String
$target,
String
$job
=
$name,
Optional
[
String
]
$prometheus_server
=
undef
,
Hash
[
String
,
String
]
$labels
=
{},
)
{
@@
profile
::
prometheus
::
scrape_config
{
"${facts['swh_hostname']['short']}_${name}"
:
prometheus_server
=>
pick
(
$prometheus_server,
lookup
(
'prometheus::server::certname'
)),
target
=>
$target,
job
=>
$job,
labels
=>
$labels,
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 9:30 AM (5 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3242431
Attached To
rSPSITE puppet-swh-site
Event Timeline
Log In to Comment