mirror of
https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter.git
synced 2024-08-16 10:19:51 +02:00
Merge pull request #5 from roles-ansible/verify
improve docs and meta info
This commit is contained in:
commit
498406f127
5 changed files with 38 additions and 23 deletions
20
.github/.galaxy.yml
vendored
20
.github/.galaxy.yml
vendored
|
@ -1,20 +0,0 @@
|
|||
---
|
||||
name: Galaxy release
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
push:
|
||||
branches: ['main']
|
||||
release:
|
||||
types: ['created']
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: galaxy
|
||||
uses: robertdebock/galaxy-action@1.1.0
|
||||
with:
|
||||
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
21
README.md
21
README.md
|
@ -1,3 +1,20 @@
|
|||
# Ansible role prometheus ping exporter
|
||||
Install https://github.com/czerwonk/ping_exporter/releases
|
||||
[![License](https://raw.githubusercontent.com/roles-ansible/ansible_role_prometheus_ping_exporter/main/.github/license.svg)](https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter/blob/main/LICENSE)
|
||||
{![Galaxy](https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter/raw/main/.github/galaxy.svg)](https://galaxy.github.com/do1jlr/prometheus_ping_exporter)
|
||||
|
||||
# Ansible role prometheus ping exporter
|
||||
Ansible role to install the prometheus node exporter from [github.com/czerwonk/ping_exporte](https://github.com/czerwonk/ping_exporter.git)
|
||||
|
||||
## Some variables
|
||||
| value | default |
|
||||
| --- | --- |
|
||||
| ping_exporter__user | ``ping_exporter`` |
|
||||
| ping_exporter__group | ``ping_exporter`` |
|
||||
| ping_exporter__user_home | ``/var/lib/ping_exporter`` |
|
||||
| ping_exporter__shell | ``/bin/false`` |
|
||||
| ping_exporter__version | ``latest`` |
|
||||
| ping_exporter__targets | `` []`` |
|
||||
| ping_exporter__nameserver | ``9.9.9.9`` |
|
||||
| ping_exporter__web_listen_address | ``:9427`` |
|
||||
| submodules_versioncheck | ``false`` |
|
||||
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ ping_exporter__version: 'latest'
|
|||
# config
|
||||
ping_exporter__targets: []
|
||||
ping_exporter__nameserver: '9.9.9.9'
|
||||
ping_exporter__web_listen_address: ":9427"
|
||||
|
||||
# should we do a version check? (recomended)
|
||||
submodules_versioncheck: false
|
||||
|
|
17
meta/main.yml
Normal file
17
meta/main.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
galaxy_info:
|
||||
role_name: prometheus_ping_exporter
|
||||
author: do1jlr
|
||||
description: Ansible role to install a prometheus ping exporter
|
||||
license: "MIT"
|
||||
min_ansible_version: "2.13"
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions: ['all']
|
||||
galaxy_tags:
|
||||
- icmp
|
||||
- grafana
|
||||
- prometheus
|
||||
- ping
|
||||
- monitoring
|
||||
dependencies: []
|
|
@ -8,7 +8,7 @@ Type=simple
|
|||
WorkingDirectory={{ ping_exporter__user_home }}
|
||||
User={{ ping_exporter__user }}
|
||||
Group={{ ping_exporter__group }}
|
||||
ExecStart=/usr/bin/ping_exporter --config.path {{ ping_exporter__user_home }}/ping_exporter_config.yml
|
||||
ExecStart=/usr/bin/ping_exporter --config.path {{ ping_exporter__user_home }}/ping_exporter_config.yml --web.listen-address="{{ ping_exporter__web_listen_address }}"
|
||||
CapabilityBoundingSet=CAP_NET_RAW
|
||||
AmbientCapabilities=CAP_NET_RAW
|
||||
|
||||
|
|
Loading…
Reference in a new issue