Page MenuHomeSoftware Heritage

D4484.diff
No OneTemporary

D4484.diff

diff --git a/site-modules/profile/manifests/opnsense/monitoring.pp b/site-modules/profile/manifests/opnsense/monitoring.pp
--- a/site-modules/profile/manifests/opnsense/monitoring.pp
+++ b/site-modules/profile/manifests/opnsense/monitoring.pp
@@ -13,10 +13,16 @@
$target = "${fqdn}:${fw_prometheus_port}"
- profile::prometheus::export_scrape_config { $fqdn :
+ $prometheus_labels = {
+ 'instance' => $fqdn, # override the instance name to use the fw name instead of pergamon
+ }
+
+ profile::prometheus::export_scrape_config { "firewall_${fqdn}" :
+ job => 'firewall',
target => $target,
scheme => 'http',
metrics_path => $fw_prometheus_metrics_path,
+ labels => $prometheus_labels,
}
::icinga2::object::host {$fqdn:

File Metadata

Mime Type
text/plain
Expires
Wed, Jul 2, 11:12 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225063

Event Timeline