update doc
This commit is contained in:
parent
c04bfb7410
commit
d93ff329df
46
README.md
46
README.md
@ -12,13 +12,34 @@ It has been tested on :
|
|||||||
Role variables
|
Role variables
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
| Variable | Type | Choices | Default | Comment |
|
| Variable | Type | Choices | Default | Comment |
|
||||||
|------------------------------------|---------|--------------|-------------------------------------------------------------------------------|----------------------------------------------------------------------------|
|
|----------------------------------------------|---------|--------------------------------------|-------------|-----------------|
|
||||||
|
| prometheus_server_enable | string | true / false | | |
|
||||||
|
| prometheus_server_version | string | | latest | |
|
||||||
|
| prometheus_server_monitor | string | | | |
|
||||||
|
| prometheus_server_global_scrape_interval | string | | 15 | |
|
||||||
|
| prometheus_server_global_evaluation_interval | string | | 15 | |
|
||||||
|
| prometheus_server_job_name | string | | prometheus | |
|
||||||
|
| prometheus_server_scrape_interval | string | | 5 | |
|
||||||
|
| prometheus_server_scrape_timeout | string | | 5 | |
|
||||||
|
| prometheus_exporter_packages | list | node / mysqld / postgresql / mongodb | | |
|
||||||
|
| prometheus_node_exporter_targets | list | | | |
|
||||||
|
| prometheus_mysqld_exporter_targets | list | | | |
|
||||||
|
| prometheus_mongodb_exporter_targets | list | | | |
|
||||||
|
| prometheus_postgres_exporter_targets | list | | | |
|
||||||
|
| prometheus_mysqld_exporter_user | string | | | |
|
||||||
|
| prometheus_mysqld_exporter_password | string | | | |
|
||||||
|
| prometheus_mongodb_exporter_host | string | | localhost | |
|
||||||
|
| prometheus_mongodb_exporter_port | string | | 27017 | |
|
||||||
|
| prometheus_mongodb_exporter_user | string | | | |
|
||||||
|
| prometheus_mongodb_exporter_pass | string | | | |
|
||||||
|
| prometheus_server_version | string | | latest | |
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Docker must installed and running.
|
- jq
|
||||||
|
- Docker must installed and running for prometheus server
|
||||||
|
|
||||||
Example Playbook
|
Example Playbook
|
||||||
----------------
|
----------------
|
||||||
@ -32,13 +53,24 @@ Example Playbook
|
|||||||
Example variables
|
Example variables
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
---
|
---
|
||||||
prometheus_enable: 'true'
|
prometheus_server_enable: 'true'
|
||||||
prometheus_node_exporter_enable: 'true'
|
prometheus_server_monitor: 'example'
|
||||||
prometheus_mysqld_exporter_enable: 'true'
|
|
||||||
|
prometheus_exporter_packages:
|
||||||
|
- node
|
||||||
|
- mysqld
|
||||||
|
|
||||||
prometheus_mysqld_exporter_user: 'foo'
|
prometheus_mysqld_exporter_user: 'foo'
|
||||||
prometheus_mysqld_exporter_password: 'bar'
|
prometheus_mysqld_exporter_password: 'bar'
|
||||||
|
|
||||||
|
prometheus_node_exporter_targets:
|
||||||
|
- server01
|
||||||
|
- server02
|
||||||
|
|
||||||
|
prometheus_mysqld_exporter_targets:
|
||||||
|
- server01
|
||||||
|
|
||||||
TODO
|
TODO
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user