Ansible BuildAnsible Build
Home
Roles
Scripts
Mint System
Chat
GitHub
Home
Roles
Scripts
Mint System
Chat
GitHub
  • Odoo Exporter role

    • Usage
odoo_exporter logo

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
Edit this page
Last Updated:
Contributors: Janik von Rotz