Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 745 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 745 Bytes

Odoo Exporter role

Add nginx config for Odoo exporter path.

Usage

Configure the role.

# https://www.odoo-wiki.org/prometheus-exporter.html
odoo_exporter_nginx_data_dir: /usr/share/nginx/proxies # default: "{{ nginx_data_dir }}/proxies"
odoo_exporter_proxy_basic_auth_username: odoo-exporter
odoo_exporter_proxy_basic_auth_password: # default: "{{ vault_odoo_exporter_proxy_basic_auth_password }}"

Ensure the nginx proxy includes the odoo-exporter config:

nginx_proxies:
  - src_hostname: server.example.com
    ssl: true
    exporter: odoo
    options: |
      include /etc/nginx/conf.d/proxies/odoo-exporter.nginx;

Include the role in your playbook.

- hosts: odoo
  roles:
  - role: odoo_exporter