fix: revert to use of macro.jinja for arg handling
The previous additions to environ.sh.jinja were fixing something that wasnt broken.
This commit is contained in:
parent
e52f804bf4
commit
f2261f9dc9
@ -9,6 +9,7 @@ driver:
|
|||||||
run_command: /lib/systemd/systemd
|
run_command: /lib/systemd/systemd
|
||||||
forward:
|
forward:
|
||||||
- 9090:9090
|
- 9090:9090
|
||||||
|
- 9110:9110
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
## SALT `tiamat`
|
## SALT `tiamat`
|
||||||
|
@ -33,7 +33,7 @@ prometheus-config-install-{{ name }}-environ_file:
|
|||||||
#- contents: |
|
#- contents: |
|
||||||
# command_args="{{ concat_args(args) }}"
|
# command_args="{{ concat_args(args) }}"
|
||||||
- context:
|
- context:
|
||||||
args: {{ args }}
|
args: {{ concat_args(args) }}
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- service: prometheus-service-running-{{ name }}
|
- service: prometheus-service-running-{{ name }}
|
||||||
- require:
|
- require:
|
||||||
|
@ -44,7 +44,7 @@ prometheus:
|
|||||||
version: v0.21.0
|
version: v0.21.0
|
||||||
config_file: /etc/prometheus/alertmanager.yml
|
config_file: /etc/prometheus/alertmanager.yml
|
||||||
config: {}
|
config: {}
|
||||||
environ_file: /etc/default/prometheus-alertmanager.sh
|
environ_file: /etc/default/prometheus-alertmanager
|
||||||
environ: {}
|
environ: {}
|
||||||
service:
|
service:
|
||||||
args:
|
args:
|
||||||
@ -131,7 +131,7 @@ prometheus:
|
|||||||
- tcp/9207
|
- tcp/9207
|
||||||
node_exporter:
|
node_exporter:
|
||||||
version: v1.0.1
|
version: v1.0.1
|
||||||
environ_file: /etc/default/prometheus-node-exporter.sh
|
environ_file: /etc/default/prometheus-node-exporter
|
||||||
environ: {}
|
environ: {}
|
||||||
config_file: /etc/prometheus/node_exporter.yml
|
config_file: /etc/prometheus/node_exporter.yml
|
||||||
config: {}
|
config: {}
|
||||||
@ -170,7 +170,7 @@ prometheus:
|
|||||||
- tcp/9090
|
- tcp/9090
|
||||||
pushgateway:
|
pushgateway:
|
||||||
version: v1.3.0
|
version: v1.3.0
|
||||||
environ_file: /etc/default/prometheus-pushgateway.sh
|
environ_file: /etc/default/prometheus-pushgateway
|
||||||
environ: {}
|
environ: {}
|
||||||
config_file: /etc/prometheus/pushgateway.yml
|
config_file: /etc/prometheus/pushgateway.yml
|
||||||
config: {}
|
config: {}
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
# File managed by Salt at <{{ source }}>.
|
# File managed by Salt at <{{ source }}>.
|
||||||
# Your changes may be overwritten.
|
# Your changes may be overwritten.
|
||||||
########################################################################
|
########################################################################
|
||||||
# Set the command-line arguments to pass to the server.
|
# Set the command-line arguments to pass to the server.%}"
|
||||||
ARGS="{%- for arg, value in args.items() %}--{{ arg }}={{ value }}{{ " " if not loop.last else "" }}{% endfor %}"
|
ARGS="{{ args }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,20 +20,20 @@ prometheus:
|
|||||||
# - mysqld_exporter
|
# - mysqld_exporter
|
||||||
# - memcached_exporter # not in upstream repo, only archive
|
# - memcached_exporter # not in upstream repo, only archive
|
||||||
|
|
||||||
exporters:
|
# exporters:
|
||||||
node_exporter:
|
# node_exporter:
|
||||||
textfile_collectors_dependencies: []
|
# textfile_collectors_dependencies: []
|
||||||
textfile_collectors:
|
# textfile_collectors:
|
||||||
ipmitool:
|
# ipmitool:
|
||||||
enable: false
|
# enable: false
|
||||||
remove: false
|
# remove: false
|
||||||
pkg: ipmitool
|
# pkg: ipmitool
|
||||||
smartmon:
|
# smartmon:
|
||||||
enable: false
|
# enable: false
|
||||||
remove: false
|
# remove: false
|
||||||
pkg: smartmontools
|
# pkg: smartmontools
|
||||||
bash_pkg: bash
|
# bash_pkg: bash
|
||||||
smartctl: /usr/sbin/smartctl
|
# smartctl: /usr/sbin/smartctl
|
||||||
pkg:
|
pkg:
|
||||||
use_upstream_repo: false
|
use_upstream_repo: false
|
||||||
# Changed to use non archive install as default (the archive includes a bespoke
|
# Changed to use non archive install as default (the archive includes a bespoke
|
||||||
@ -87,6 +87,10 @@ prometheus:
|
|||||||
- to: 'team-X+alerts@example.org'
|
- to: 'team-X+alerts@example.org'
|
||||||
|
|
||||||
node_exporter:
|
node_exporter:
|
||||||
|
environ:
|
||||||
|
args:
|
||||||
|
collector.systemd: true
|
||||||
|
web.listen-address: ":9110"
|
||||||
service:
|
service:
|
||||||
args:
|
args:
|
||||||
collector.systemd: null
|
collector.systemd: null
|
||||||
|
Loading…
Reference in New Issue
Block a user