Unnamed repository; edit this file 'description' to name the repository.
Find a file
2024-03-23 00:57:23 +02:00
defaults Add readme 2021-10-14 22:08:17 +03:00
handlers Add existing code 2021-10-14 14:18:33 +03:00
meta Add meta 2022-10-11 10:44:24 +03:00
tasks Update repo 2024-03-23 00:57:23 +02:00
templates Add existing code 2021-10-14 14:18:33 +03:00
README.md Add readme 2021-10-14 22:08:17 +03:00

Ansible role ping_exporter

Deploys ping_exporter script and install it as a systemd service unit.

Configuration

Check defaults but create a dictionary ping_exporter with this values:

  • prometheus_host: IP or hostname of prometheus host to open access in UFW (if specified)
  • targets: List of IPs to ping
  • log_file: Log file for debug information (A logrotate rule will be added to rotate it)
  • count: Number of pings to send to each host
  • port: Port for the web service to listen
  • frequency: Delay between pings to each host
  • interval: Time between packets sent
  • timeout: The maximum waiting time for receiving a reply in seconds
  • family: IP family version to use (A string "4" or "6")
  • handle_ufw: Whether to create an "allow" rule in UFW for the port and the Prometheus server IP or hostname.