feat(osfamilymap.yaml): add Gentoo support

Signed-off-by: Mark Gomersbach <markgomersbach@gmail.com>
This commit is contained in:
Mark Gomersbach 2019-12-22 02:42:05 +01:00
parent a51e532992
commit b87e8f437c
No known key found for this signature in database
GPG Key ID: B5171AF93EC64F16
3 changed files with 29 additions and 2 deletions

View File

@ -109,7 +109,7 @@ prometheus-config-args-{{ name }}-file-managed:
file.managed: file.managed:
- name: {{ args_file }} - name: {{ args_file }}
- contents: | - contents: |
ARGS="{{ concat_args(args) }}" {{ prometheus.dir.args_setting }}="{{ concat_args(args) }}"
- watch_in: - watch_in:
- service: prometheus-service-running-{{ name }}-service-running - service: prometheus-service-running-{{ name }}-service-running
{%- if prometheus.dir.args %} {%- if prometheus.dir.args %}

View File

@ -20,6 +20,7 @@ prometheus:
etc: /etc/prometheus etc: /etc/prometheus
var: /var/lib/prometheus var: /var/lib/prometheus
args: /etc/default args: /etc/default
args_setting: ARGS
service: /usr/lib/systemd/system service: /usr/lib/systemd/system
textfile_collectors: /opt/prometheus/textfile_collectors textfile_collectors: /opt/prometheus/textfile_collectors

View File

@ -35,7 +35,33 @@ RedHat:
Suse: {} Suse: {}
Gentoo: {} Gentoo:
dir:
args: false
args_setting: command_args
textfile_collectors: /var/lib/node_exporter/
pkg:
prometheus:
name: app-metrics/prometheus
args_file: /etc/conf.d/prometheus
node_exporter:
name: app-metrics/node_exporter
args_file: /etc/conf.d/node_exporter
alertmanager:
name: app-metrics/alertmanager
args_file: /etc/conf.d/alertmanager
service:
node_exporter:
args:
collector.textfile.directory: /var/lib/node_exporter
alertmanager:
args:
config.file: /etc/prometheus/alertmanager.yml
storage.path: /var/lib/alertmanager
prometheus:
args:
config.file: /etc/prometheus/prometheus.yml
storage.tsdb.path: /var/lib/prometheus/data
Arch: {} Arch: {}