Page MenuHomeSoftware Heritage

export_scrape_config.pp
No OneTemporary

export_scrape_config.pp

# 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

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

Event Timeline