|
1 | 1 | Postgres Exporter |
2 | 2 | ================= |
3 | 3 |
|
4 | | -Ansible роль для установки, настройки и обновления [Postgres Exporter](https://github.com/prometheus-community/postgres_exporter). |
| 4 | +An Ansible role for install, configure and update [Postgres Exporter](https://github.com/prometheus-community/postgres_exporter). |
5 | 5 |
|
6 | | -Требования |
7 | | ----------- |
| 6 | +Requirements |
| 7 | +------------ |
8 | 8 |
|
9 | | -- Поддерживаемая версия Ansible: 2.7 и выше. |
10 | | -- `pywinrm` для подключения [Ansible через WinRM](https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html) (для Windows). |
11 | | -- `gnu-tar` при использовании Mac в качестве управляющего хоста (`brew install gnu-tar`). |
12 | | -- Список поддерживаемых платформ описан в файле метаданных роли. |
| 9 | +- Supported version of Ansible: 2.9 and highter. |
| 10 | +- `gnu-tar` on Mac as deployer host (`brew install gnu-tar`). |
| 11 | +- List of all supported platforms described in role meta. |
13 | 12 |
|
14 | | -Используемые переменные |
15 | | ------------------------ |
| 13 | +Role Variables |
| 14 | +-------------- |
16 | 15 |
|
17 | | -- `postgres_exporter_version` Версия Postgres Exporter для установки (default: `0.11.1`). |
18 | | -- `postgres_exporter_package_name` Имя пакета. |
19 | | -- `postgres_exporter_download_url` Ссылка на скачивание архива с приложением. |
20 | | -- `postgres_exporter_user` Unix имя пользователя (default: `postgres`). |
21 | | -- `postgres_exporter_group` Unix группа пользователя (default: `postgres`). |
22 | | -- `postgres_exporter_install_path` Каталог, в который будет распакован бинарник (default: `/usr/local/bin`). |
23 | | -- `postgres_exporter_data_source_name` Строка подключения к БД (default: `user=postgres host=/var/run/postgresql/ sslmode=disable`). |
24 | | -- `postgres_exporter_extend_query_path` Путь до YAML файла содержащего дополнительные sql-запросы для записи метрик (default: `''`). |
25 | | -- `postgres_exporter_log_level` Уровень логирования экспортера (default: `info`). |
| 16 | +- `postgres_exporter_version` The specific version of Postgres Exporter to download (default: `0.11.1`). |
| 17 | +- `postgres_exporter_archive_name` Postgres Exporter archive name (default: `postgres_exporter-{{ postgres_exporter_version }}.linux-{{ _postgres_exporter_architecture }}`). |
| 18 | +- `postgres_exporter_archive_extension` Postgres Exporter archive extension (default: `tar.gz`) |
| 19 | +- `postgres_exporter_download_url` URL to download an archive with Postgres Exporter. |
| 20 | +- `postgres_exporter_user` and `postgres_exporter_group` Unix username and group (default: `postgres`). |
| 21 | +- `postgres_exporter_install_path` Path to Postgres Exporter installation directory (default: `/usr/local/bin`). |
| 22 | +- `postgres_exporter_data_source_name` Accepts URI form and key=value form arguments. The URI may contain the username and password to connect with. (default: `user=postgres host=/var/run/postgresql/ sslmode=disable`). |
| 23 | +- `postgres_exporter_extend_query_path` Path to a YAML file containing custom queries to run. (default: `''`). |
| 24 | +- `postgres_exporter_log_level` Postgres Exporter logging level. |
26 | 25 |
|
27 | | -Зависимости |
28 | | ------------ |
| 26 | + Available values: |
| 27 | + - `debug` |
| 28 | + - `info` (default) |
| 29 | + - `warn` |
| 30 | + - `error` |
29 | 31 |
|
30 | | -Отсутствуют. |
| 32 | +Dependencies |
| 33 | +------------ |
31 | 34 |
|
32 | | -Пример использования |
33 | | --------------------- |
| 35 | +None. |
34 | 36 |
|
35 | | -- Устанавливаем и настраиваем Postgres Exporter: |
| 37 | +Example Playbook |
| 38 | +---------------- |
| 39 | + |
| 40 | +- Install and configure Postgres Exporter: |
36 | 41 |
|
37 | 42 | ```yaml |
38 | 43 | --- |
39 | 44 | - name: 'Setup Postgres Exporter' |
40 | 45 | hosts: all |
41 | 46 |
|
42 | 47 | roles: |
43 | | - - role: ansible-role-postgres-exporter |
| 48 | + - role: antmelekhin.postgres_exporter |
44 | 49 | ``` |
45 | 50 |
|
46 | | -Лицензия |
47 | | --------- |
| 51 | +License |
| 52 | +------- |
48 | 53 |
|
49 | 54 | MIT |
50 | 55 |
|
51 | | -Информация об авторе |
52 | | --------------------- |
| 56 | +Author Information |
| 57 | +------------------ |
53 | 58 |
|
54 | | -Мелехин Антон. |
| 59 | +Melekhin Anton. |
0 commit comments