prometheus-exporter: set port on Windows and open firewall

This commit is contained in:
Timotej Lazar 2025-10-16 10:34:57 +02:00
parent e85524eb7c
commit 60ad70a09f

View file

@ -1,3 +1,13 @@
- name: Install prometheus exporter
win_chocolatey:
name: prometheus-windows-exporter.install
package_params: "/ListenPort:9100"
- name: Allow access to metrics
win_firewall_rule:
name: "Allow access to Prometheus metrics"
enabled: true
action: allow
direction: in
protocol: tcp
localport: 9100