forked from rc/classroom
prometheus-exporter: set port on Windows and open firewall
This commit is contained in:
parent
e85524eb7c
commit
60ad70a09f
1 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,13 @@
|
||||||
- name: Install prometheus exporter
|
- name: Install prometheus exporter
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: prometheus-windows-exporter.install
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue