Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbeck-dev committed Jan 27, 2025
1 parent 6e93c10 commit 5f63424
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions roles/prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ prometheus_odoo_exporter_basic_auth_username: odoo-exporter
prometheus_odoo_exporter_basic_auth_password: # default: "{{ vault_prometheus_odoo_exporter_basic_auth_password }}"
prometheus_n8n_exporter_basic_auth_username: n8n-exporter
prometheus_n8n_exporter_basic_auth_password: # default: "{{ vault_prometheus_n8n_exporter_basic_auth_password }}"
prometheus_meilisearch_exporter_api_key: "{{ vault_prometheus_meilisearch_exporter_api_key }}"
```
Ensure the nginx proxy includes the exporter config:
Expand Down
1 change: 1 addition & 0 deletions roles/prometheus/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ prometheus_restic_server_basic_auth_password: "{{ vault_prometheus_restic_server
prometheus_mysqld_exporter_basic_auth_password: "{{ vault_prometheus_mysqld_exporter_basic_auth_password }}"
prometheus_odoo_exporter_basic_auth_password: "{{ vault_prometheus_odoo_exporter_basic_auth_password }}"
prometheus_n8n_exporter_proxy_basic_auth_password: "'{{ vault_prometheus_n8n_exporter_proxy_basic_auth_password }}'"
prometheus_meilisearch_exporter_api_key: "{{ vault_prometheus_meilisearch_exporter_api_key }}"
prometheus_alerting: {}
prometheus_rules: {}
# system.yml: |
Expand Down
7 changes: 4 additions & 3 deletions roles/prometheus/templates/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ scrape_configs:
- target_label: __address__
replacement: {{ blackbox_exporter_hostname }}:9115
{% endif %}

{% if prometheus_n8n_exporter_proxy_basic_auth_username is defined %}
- job_name: n8n https
metrics_path: "/n8n-exporter/metrics"
Expand All @@ -151,17 +152,17 @@ scrape_configs:
static_configs:
- targets: {{ prometheus_hosts | map('extract', hostvars) | json_query('[*].nginx_proxies[?exporter!=null && contains(exporter, `n8n`)].src_hostname') | flatten }}
{% endif %}
{% if vault_prometheus_meilisearch_exporter_master_key is defined %}
{% if prometheus_meilisearch_exporter_api_key is defined %}
- job_name: meilisearch https
metrics_path: "/metrics"
scrape_interval: 30s
honor_labels: true
scheme: https
authorization:
type: Bearer
credentials: {{ vault_prometheus_meilisearch_exporter_master_key }}
credentials: {{ prometheus_meilisearch_exporter_api_key }}
static_configs:
- targets: ['meilisearch.sozialinfo.ch']
- targets: {{ prometheus_hosts | map('extract', hostvars) | json_query('[*].nginx_proxies[?exporter!=null && contains(exporter, `meilisearch`)].src_hostname') | flatten }}
{% endif %}
{% if prometheus_n8n_business_metrics_jobportal_username is defined %}
- job_name: n8n business metrics jobportal https
Expand Down

0 comments on commit 5f63424

Please sign in to comment.