Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/roles-ansible/ansible_role_nginx_exporter
- Owner: roles-ansible
- License: mit
- Created: 2023-11-25T01:17:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-22T10:26:32.000Z (10 months ago)
- Last Synced: 2024-03-22T11:37:44.568Z (10 months ago)
- Topics: ansible, nginx
- Language: Python
- Homepage: https://galaxy.ansible.com/ui/standalone/roles/roles-ansible/nginx_exporter/
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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 / BSDAuthor Information
------------------
+ Agnesius Santo Naibaho
+ L3D *([DO1JLR](https://github.com/do1jlr))*