Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9312851
D4484.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
814 B
Subscribers
None
D4484.diff
View Options
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
Details
Attached
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
Attached To
D4484: prometheus: Well categorize the firewall metrics
Event Timeline
Log In to Comment