first commit
This commit is contained in:
78
README.md
Normal file
78
README.md
Normal file
@@ -0,0 +1,78 @@
|
||||
Ansible-Role: Node exporter
|
||||
=========
|
||||
|
||||
This role installs [node-exporter](https://github.com/prometheus/node_exporter) for the prometeus metrics server and configures the systemd service
|
||||
|
||||
#### Installation
|
||||
|
||||
1: go to the roles folder
|
||||
2: cloning the repository git clone url node_exporter
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
N/A
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
---
|
||||
#### General
|
||||
|
||||
```yaml
|
||||
NE_version: 'latest'
|
||||
NE_arch: 'amd64'
|
||||
NE_host: ''
|
||||
NE_port: 9100
|
||||
NE_options: ''
|
||||
```
|
||||
- NE_version: Node_exporter version
|
||||
- NE_arch: System architecture
|
||||
- NE_host: the IP address where node_exporter will listen
|
||||
- NE_port: the port where node_exporter will listen (Don't forget to open it.)
|
||||
- NE_optinos: Abstract attributes of node_exporter
|
||||
#### Download
|
||||
|
||||
```yaml
|
||||
NE_download_url: https://github.com/prometheus/node_exporter/releases/download/v{{ NE_version }}/node_exporter-{{ NE_version }}.linux-{{ NE_arch }}.tar.gz
|
||||
```
|
||||
- NE_download_url generating the node_exporter download link
|
||||
|
||||
#### Setting systemd
|
||||
|
||||
```yaml
|
||||
NE_bin_path: /usr/local/bin/node_exporter
|
||||
NE_state: started
|
||||
NE_enabled: true
|
||||
NE_restart: on-failure
|
||||
```
|
||||
- NE_bin_path The installation path of the binary file
|
||||
- NE_state Start of the systemd service
|
||||
- NE_enbaled Enabling systemd service startup
|
||||
- NE_restart restarting node_exporter.service when it fails
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
no
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
```yaml
|
||||
- hosts: servers
|
||||
roles:
|
||||
- role: node_exporter
|
||||
```
|
||||
License
|
||||
-------
|
||||
|
||||
MIT
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
1xtier
|
||||
|
||||
[github](https://github.com/1xtier)
|
||||
|
||||
[blog](https://1xtier.ru)
|
||||
Reference in New Issue
Block a user