2025-02-13 15:21:42 -06:00
|
|
|
# vim:ft=ansible:
|
2025-02-13 17:19:02 -06:00
|
|
|
#
|
|
|
|
# Bless this man. Bless him dearly:
|
|
|
|
# https://github.com/DRuggeri/netgear_exporter
|
|
|
|
#
|
2025-02-13 15:21:42 -06:00
|
|
|
- name: docker deploy netgear prometheus exporter
|
|
|
|
vars:
|
|
|
|
netgear_admin_password: !vault |
|
|
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
|
|
31346635363565363532653831613034376535653530376237343261623736326230393333326337
|
|
|
|
3062643963353334323439306361356437653834613832310a666366393662303166313733393831
|
|
|
|
32373465356638393138633963666337643333303435653537666361363437633533333263303938
|
|
|
|
6536353530323036350a656330326662373836393736383961393537666537353138346439626566
|
|
|
|
64336631656538343335343535343338613465393635333937656237333531303230
|
|
|
|
docker_container:
|
|
|
|
name: prometheus-netgear-exporter
|
|
|
|
image: ghcr.io/druggeri/netgear_exporter
|
|
|
|
env:
|
|
|
|
NETGEAR_EXPORTER_PASSWORD: "{{ netgear_admin_password }}"
|
|
|
|
networks:
|
|
|
|
- name: web
|
|
|
|
aliases: [ "redis" ]
|
|
|
|
ports:
|
|
|
|
- "9192:9192/tcp"
|
|
|
|
command:
|
2025-02-13 17:19:02 -06:00
|
|
|
- "--url=http://192.168.1.1:5000" # Set the URL to the SOAP port of the router, NOT the admin interface
|
|
|
|
- "--insecure" # Required when accessing over IP
|
|
|
|
- "--timeout=15" # The router is slow as balls
|
|
|
|
- "--filter.collectors=Client,Traffic" # Filter out SystemInfo to lower collection time
|
2025-02-13 15:21:42 -06:00
|
|
|
tags: [ docker, prometheus, netgear, prometheus-netgear ]
|