diff --git a/prometheus/server.sls b/prometheus/server.sls index 8f8997d..b898cd3 100644 --- a/prometheus/server.sls +++ b/prometheus/server.sls @@ -51,7 +51,8 @@ prometheus_service_unit: file.managed: {%- if grains.get('init') == 'systemd' %} - name: /etc/systemd/system/prometheus.service - - source: salt://prometheus/files/prometheus.systemd.jinja + {# - source: salt://prometheus/files/prometheus.systemd.jinja #} + - source: salt://prometheus/fiels/exporter.systemd.jinja {%- elif grains.get('init') == 'upstart' %} - name: /etc/init/prometheus.conf - source: salt://prometheus/files/prometheus.upstart.jinja @@ -60,8 +61,10 @@ prometheus_service_unit: - context: user: {{ prometheus.user }} group: {{ prometheus.group }} - bin_path: {{ prometheus.exporter.node.version_path }} - args: {{ prometheus.exporter.get('args', []) }} + bin_path: {{ prometheus.server.version_path }} + args: {{ prometheus.server.args.get('service_args', []) }} + url: {{ prometheus.server.args.url }} + description: Monitoring Server - watch: - file: prometheus_defaults - require_in: