Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/roles-ansible/ansible_role_nginx_exporter

Ansible role to install the nginx-prometheus-exporter
https://github.com/roles-ansible/ansible_role_nginx_exporter

ansible nginx

Last synced: about 2 months ago
JSON representation

Ansible role to install the nginx-prometheus-exporter

Awesome Lists containing this project

README

        

Ansible Role Nginx Exporter
=============================

Ansible role to install [Nginx Prometheus Exporter](https://github.com/nginxinc/nginx-prometheus-exporter)

Requirements
--------------

None

Role Variables
----------------

| variable | default | comment |
|---------------------------------|-------------------------------------|-------------------------------|
| `nginx_exporter_version` | `0.9.0` | nginx exporter version |
| `nginx_exporter_nginx_plus` | `false` | set true if use nginx plus |
| `nginx_exporter_listen_address` | `0.0.0.0:9113` | nginx exporter listen address |
| `nginx_exporter_scrape_uri` | `http://127.0.0.1:8080/stub_status` | nginx status url |

Dependencies
--------------

You need a nginx server with stub_status enabled. For example ``geerlingguy.nginx``.

Example Playbook
------------------
```yaml
- hosts: servers
vars:
nginx_vhosts:
- listen: "127.0.0.1:8080 default"
server_name: "_"
filename: "status.conf"
extra_parameters: |
location / {
stub_status on;
access_log off;
}
roles:
- geerlingguy.nginx
- cloudweeb.nginx_exporter
```

License
-------
MIT / BSD

Author Information
------------------
+ Agnesius Santo Naibaho
+ L3D *([DO1JLR](https://github.com/do1jlr))*