mirror of
https://github.com/prometheus-community/ansible
synced 2025-02-16 12:48:26 +00:00
fix: upstream is now at prometheus-community
Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
parent
210514d4b7
commit
d3a147f7d8
5 changed files with 14 additions and 14 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
## Description
|
||||
|
||||
Deploy prometheus [systemd exporter](https://github.com/povilasv/systemd_exporter) using ansible.
|
||||
Deploy prometheus [systemd exporter](https://github.com/prometheus-community/systemd_exporter) using ansible.
|
||||
|
||||
## Requirements
|
||||
|
||||
|
@ -19,14 +19,14 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
|
|||
| -------------- | ------------- | -----------------------------------|
|
||||
| `systemd_exporter_version` | 0.4.0 | SystemD exporter package version. Also accepts latest as parameter. |
|
||||
| `systemd_exporter_binary_local_dir` | "" | Allows to use local packages instead of ones distributed on github. As parameter it takes a directory where `systemd_exporter` binary is stored on host on which ansible is ran. This overrides `systemd_exporter_version` parameter |
|
||||
| `systemd_exporter_binary_url` | `https://github.com/povilasv/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/systemd_exporter-{{ systemd_exporter_version }}.linux-{{ go_arch }}.tar.gz` | URL of the systemd exporter binaries .tar.gz file |
|
||||
| `systemd_exporter_checksums_url` | `https://github.com/povilasv/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/sha256sums.txt` | URL of the systemd exporter checksums file |
|
||||
| `systemd_exporter_binary_url` | `https://github.com/prometheus-community/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/systemd_exporter-{{ systemd_exporter_version }}.linux-{{ go_arch }}.tar.gz` | URL of the systemd exporter binaries .tar.gz file |
|
||||
| `systemd_exporter_checksums_url` | `https://github.com/prometheus-community/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/sha256sums.txt` | URL of the systemd exporter checksums file |
|
||||
| `systemd_exporter_web_listen_address` | "0.0.0.0:9558" | Address on which systemd exporter will listen |
|
||||
| `systemd_exporter_enable_restart_count` | false | Enables service restart count metrics. This feature only works with systemd 235 and above |
|
||||
| `systemd_exporter_enable_ip_accounting` | false | Enables service ip accounting metrics. This feature only works with systemd 235 and above |
|
||||
| `systemd_exporter_enable_file_descriptor_size` | false | Enables file descriptor size metrics. This feature will cause exporter to run as root as it needs access to /proc/X/fd |
|
||||
| `systemd_exporter_unit_allowlist` | "" | Include some systemd units. Expects a regex. More in https://github.com/povilasv/systemd_exporter#configuration |
|
||||
| `systemd_exporter_unit_denylist` | "" | Exclude some systemd units. Expects a regex. More in https://github.com/povilasv/systemd_exporter#configuration |
|
||||
| `systemd_exporter_unit_allowlist` | "" | Include some systemd units. Expects a regex. More in https://github.com/prometheus-community/systemd_exporter#configuration |
|
||||
| `systemd_exporter_unit_denylist` | "" | Exclude some systemd units. Expects a regex. More in https://github.com/prometheus-community/systemd_exporter#configuration |
|
||||
|
||||
## Example
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
systemd_exporter_version: 0.4.0
|
||||
systemd_exporter_binary_local_dir: ""
|
||||
systemd_exporter_binary_url: "https://github.com/povilasv/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/\
|
||||
systemd_exporter_binary_url: "https://github.com/prometheus-community/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/\
|
||||
systemd_exporter-{{ systemd_exporter_version }}.linux-{{ go_arch }}.tar.gz"
|
||||
systemd_exporter_checksums_url: "https://github.com/povilasv/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/sha256sums.txt"
|
||||
systemd_exporter_checksums_url: "https://github.com/prometheus-community/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/sha256sums.txt"
|
||||
systemd_exporter_web_listen_address: "0.0.0.0:9558"
|
||||
|
||||
systemd_exporter_enable_restart_count: false
|
||||
|
|
|
@ -4,7 +4,7 @@ argument_specs:
|
|||
main:
|
||||
short_description: "Prometheus Systemd Exporter"
|
||||
description:
|
||||
- "Deploy prometheus L(systemd exporter,,https://github.com/povilasv/systemd_exporter) using ansible."
|
||||
- "Deploy prometheus L(systemd exporter,,https://github.com/prometheus-community/systemd_exporter) using ansible."
|
||||
author:
|
||||
- "Prometheus Community"
|
||||
options:
|
||||
|
@ -18,10 +18,10 @@ argument_specs:
|
|||
- "This overrides I(systemd_exporter_version) parameter"
|
||||
systemd_exporter_binary_url:
|
||||
description: URL of the systemd exporter binaries .tar.gz file"
|
||||
default: "https://github.com/povilasv/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/systemd_exporter-{{ systemd_exporter_version }}.linux-{{ go_arch }}.tar.gz"
|
||||
default: "https://github.com/prometheus-community/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/systemd_exporter-{{ systemd_exporter_version }}.linux-{{ go_arch }}.tar.gz"
|
||||
systemd_exporter_checksums_url:
|
||||
description: "URL of the systemd exporter checksums file"
|
||||
default: "https://github.com/povilasv/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/sha256sums.txt"
|
||||
default: "https://github.com/prometheus-community/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/sha256sums.txt"
|
||||
systemd_exporter_web_listen_address:
|
||||
description: Address on which systemd exporter will listen"
|
||||
default: "0.0.0.0:9558"
|
||||
|
@ -38,9 +38,9 @@ argument_specs:
|
|||
type: "bool"
|
||||
default: false
|
||||
systemd_exporter_unit_allowlist:
|
||||
description: "Include some systemd units. Expects a regex. More in L(https://github.com/povilasv/systemd_exporter#configuration)"
|
||||
description: "Include some systemd units. Expects a regex. More in L(https://github.com/prometheus-community/systemd_exporter#configuration)"
|
||||
systemd_exporter_unit_denylist:
|
||||
description: "Exclude some systemd units. Expects a regex. More in L(https://github.com/povilasv/systemd_exporter#configuration)"
|
||||
description: "Exclude some systemd units. Expects a regex. More in L(https://github.com/prometheus-community/systemd_exporter#configuration)"
|
||||
systemd_exporter_binary_install_dir:
|
||||
description:
|
||||
- "I(Advanced)"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
- name: Download systemd_exporter binary to local folder
|
||||
become: false
|
||||
ansible.builtin.get_url:
|
||||
url: "https://github.com/povilasv/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/\
|
||||
url: "https://github.com/prometheus-community/systemd_exporter/releases/download/v{{ systemd_exporter_version }}/\
|
||||
systemd_exporter-{{ systemd_exporter_version }}.linux-{{ go_arch }}.tar.gz"
|
||||
dest: "/tmp/systemd_exporter-{{ systemd_exporter_version }}.linux-{{ go_arch }}.tar.gz"
|
||||
mode: 0644
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
- name: Discover latest version
|
||||
ansible.builtin.set_fact:
|
||||
systemd_exporter_version: "{{ (lookup('url', 'https://api.github.com/repos/povilasv/systemd_exporter/releases/latest', split_lines=False) |
|
||||
systemd_exporter_version: "{{ (lookup('url', 'https://api.github.com/repos/prometheus-community/systemd_exporter/releases/latest', split_lines=False) |
|
||||
from_json).get('tag_name') | replace('v', '') }}"
|
||||
run_once: true
|
||||
until: systemd_exporter_version is version('0.0.0', '>=')
|
||||
|
|
Loading…
Add table
Reference in a new issue