Updated defaults and parsing
This commit is contained in:
parent
ba53500166
commit
1eb05539f2
6 changed files with 19 additions and 9 deletions
|
@ -25,11 +25,14 @@ prometheus:
|
||||||
install_dir: /opt
|
install_dir: /opt
|
||||||
source: https://github.com/prometheus/node_exporter/releases/download/v0.17.0/node_exporter-0.17.0.linux-amd64.tar.gz
|
source: https://github.com/prometheus/node_exporter/releases/download/v0.17.0/node_exporter-0.17.0.linux-amd64.tar.gz
|
||||||
source_hash: https://github.com/prometheus/node_exporter/releases/download/v0.17.0/sha256sums.txt
|
source_hash: https://github.com/prometheus/node_exporter/releases/download/v0.17.0/sha256sums.txt
|
||||||
|
url: ""
|
||||||
|
args: []
|
||||||
blackbox:
|
blackbox:
|
||||||
version: 0.14.0.linux-amd64
|
version: 0.14.0.linux-amd64
|
||||||
install_dir: /opt
|
install_dir: /opt
|
||||||
source: https://github.com/prometheus/blackbox_exporter/releases/download/v0.14.0/blackbox_exporter-0.14.0.linux-amd64.tar.gz
|
source: https://github.com/prometheus/blackbox_exporter/releases/download/v0.14.0/blackbox_exporter-0.14.0.linux-amd64.tar.gz
|
||||||
source_hash: https://github.com/prometheus/blackbox_exporter/releases/download/v0.14.0/sha256sums.txt
|
source_hash: https://github.com/prometheus/blackbox_exporter/releases/download/v0.14.0/sha256sums.txt
|
||||||
|
url: ""
|
||||||
args:
|
args:
|
||||||
config_file: /etc/prometheus/blackbox_exporter.yml
|
config_file: /etc/prometheus/blackbox_exporter.yml
|
||||||
haproxy:
|
haproxy:
|
||||||
|
@ -37,6 +40,7 @@ prometheus:
|
||||||
install_dir: /opt
|
install_dir: /opt
|
||||||
source: https://github.com/prometheus/haproxy_exporter/releases/download/v0.10.0/haproxy_exporter-0.10.0.linux-amd64.tar.gz
|
source: https://github.com/prometheus/haproxy_exporter/releases/download/v0.10.0/haproxy_exporter-0.10.0.linux-amd64.tar.gz
|
||||||
source_hash: https://github.com/prometheus/haproxy_exporter/releases/download/v0.10.0/sha256sums.txt
|
source_hash: https://github.com/prometheus/haproxy_exporter/releases/download/v0.10.0/sha256sums.txt
|
||||||
|
url: ""
|
||||||
args:
|
args:
|
||||||
scrape_uri: 'unix:/run/haproxy/admin.sock'
|
scrape_uri: 'unix:/run/haproxy/admin.sock'
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
|
@ -44,3 +48,5 @@ prometheus:
|
||||||
install_dir: /opt
|
install_dir: /opt
|
||||||
source: https://github.com/kbudde/rabbitmq_exporter/releases/download/v0.24.0/rabbitmq_exporter-0.24.0.linux-amd64.tar.gz
|
source: https://github.com/kbudde/rabbitmq_exporter/releases/download/v0.24.0/rabbitmq_exporter-0.24.0.linux-amd64.tar.gz
|
||||||
source_hash: sha256=dbbd44a5a4b4a22ba338b9732c014587bc11513a5d6d2e3e519fc313b1cc46d4
|
source_hash: sha256=dbbd44a5a4b4a22ba338b9732c014587bc11513a5d6d2e3e519fc313b1cc46d4
|
||||||
|
url: ""
|
||||||
|
args: []
|
||||||
|
|
|
@ -39,7 +39,8 @@ blackbox_exporter_service_unit:
|
||||||
- name: /etc/init/blackbox_exporter.conf
|
- name: /etc/init/blackbox_exporter.conf
|
||||||
- source: salt://prometheus/files/exporter.upstart.jinja
|
- source: salt://prometheus/files/exporter.upstart.jinja
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
- context:
|
- template: jinja
|
||||||
|
- defaults:
|
||||||
svc: node_exporter
|
svc: node_exporter
|
||||||
user: {{ prometheus.user }}
|
user: {{ prometheus.user }}
|
||||||
group: {{ prometheus.group }}
|
group: {{ prometheus.group }}
|
||||||
|
|
|
@ -44,8 +44,9 @@ haproxy_exporter_service_unit:
|
||||||
svc: node_exporter
|
svc: node_exporter
|
||||||
user: {{ prometheus.user }}
|
user: {{ prometheus.user }}
|
||||||
group: {{ prometheus.group }}
|
group: {{ prometheus.group }}
|
||||||
bin_path: {{ prometheus.exporter.node.version_path }}
|
bin_path: {{ prometheus.exporter.haproxy.version_path }}
|
||||||
args: {{ prometheus.exporter.get('args', []) }}
|
args: {{ prometheus.exporter.haproxy.args }}
|
||||||
|
url: {{ prometheus.exporter.haproxy.url }}
|
||||||
- require_in:
|
- require_in:
|
||||||
- file: haproxy_exporter_service
|
- file: haproxy_exporter_service
|
||||||
|
|
||||||
|
|
|
@ -43,8 +43,8 @@ node_exporter_service_unit:
|
||||||
user: {{ prometheus.user }}
|
user: {{ prometheus.user }}
|
||||||
group: {{ prometheus.group }}
|
group: {{ prometheus.group }}
|
||||||
bin_path: {{ prometheus.exporter.node.version_path }}
|
bin_path: {{ prometheus.exporter.node.version_path }}
|
||||||
args: {{ prometheus.exporter.node.get('args', []) }}
|
args: {{ prometheus.exporter.node.args }}
|
||||||
url: {{ prometheus.exporter.node.get('url', None) }}
|
url: {{ prometheus.exporter.node.url }}
|
||||||
- require_in:
|
- require_in:
|
||||||
- file: node_exporter_service
|
- file: node_exporter_service
|
||||||
|
|
||||||
|
|
|
@ -37,12 +37,14 @@ rabbitmq_exporter_service_unit:
|
||||||
- name: /etc/init/rabbitmq_exporter.conf
|
- name: /etc/init/rabbitmq_exporter.conf
|
||||||
- source: salt://prometheus/files/exporter.upstart.jinja
|
- source: salt://prometheus/files/exporter.upstart.jinja
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
- context:
|
- template: jinja
|
||||||
|
- defaults:
|
||||||
svc: node_exporter
|
svc: node_exporter
|
||||||
user: {{ prometheus.user }}
|
user: {{ prometheus.user }}
|
||||||
group: {{ prometheus.group }}
|
group: {{ prometheus.group }}
|
||||||
bin_path: {{ prometheus.exporter.node.version_path }}
|
bin_path: {{ prometheus.exporter.rabbitmq.version_path }}
|
||||||
args: {{ prometheus.exporter.get('args', []) }}
|
args: {{ prometheus.exporter.rabbitmq.args }}
|
||||||
|
url: {{ prometheus.exporter.rabbitmq.url }}
|
||||||
- require_in:
|
- require_in:
|
||||||
- file: rabbitmq_exporter_service
|
- file: rabbitmq_exporter_service
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Prometheus {{ svc }} Exporter
|
Description=Prometheus {{ svc }} Exporter
|
||||||
{%- if url is string and url is not None %}
|
{%- if url %}
|
||||||
Documentation={{ url }}
|
Documentation={{ url }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
Wants=basic.target
|
Wants=basic.target
|
||||||
|
|
Loading…
Reference in a new issue