Skip to content

Commit

Permalink
Adding work in progress exporters
Browse files Browse the repository at this point in the history
  • Loading branch information
Mesaguy committed Apr 11, 2020
1 parent 80a0cc0 commit db52284
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tasks/wip/postfix_exporter_kumina.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
- block:
- name: Include role mesaguy.prometheus setup task
include_tasks: _setup.yml
when: prometheus_setup_task_executed is not defined

- name: Starting postfix_exporter (kumina) install
set_fact:
prometheus_exporter: true
prometheus_software_allow_build_test: true
prometheus_software_author: kumina
prometheus_software_binary_name: postfix_exporter
prometheus_software_officialname: postfix_exporter_kumina
prometheus_software_name: postfix_exporter_kumina
prometheus_software_description: 'Prometheus postfix_exporter (kumina), exporter of postfix metrics'
prometheus_software_documentation: 'https://github.com/kumina/postfix_exporter'
prometheus_software_service_test: '{{ prometheus_postfix_exporter_kumina_service_test | default(true) }}'

- name: Include task to setup {{ prometheus_software_name }} facts
include_tasks: _setup_software_facts.yml

- name: Set {{ prometheus_software_name_version }} facts
set_fact:
prometheus_software_opts:
- '-web.listen-address={{ prometheus_software_host }}:{{ prometheus_software_port }}'

- name: Include task to perform installation of {{ prometheus_software_name_version }}
include_tasks: _install.yml

- name: Include task to setup {{ prometheus_software_name_version }} service
include_tasks: _service.yml

- name: Include task to perform post install cleanup of {{ prometheus_software_name_version }}
include_tasks: _post_install_cleanup.yml
33 changes: 33 additions & 0 deletions tasks/wip/raspberry_exporter_derknerd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
- block:
- name: 'Include role mesaguy.prometheus setup task'
include_tasks: _setup.yml
when: prometheus_setup_task_executed is not defined

- name: Starting raspberry_exporter (DerKnerd) install
set_fact:
prometheus_exporter: true
prometheus_software_allow_build_test: true
prometheus_software_author: DerKnerd
prometheus_software_binary_name: raspberry_exporter
prometheus_software_name: raspberry-exporter_DerKnerd
prometheus_software_description: 'Prometheus raspberry_exporter (DerKnerd), simple wrapper around the vcgencmd executable on Raspberry PIs'
prometheus_software_documentation: 'https://github.com/DerKnerd/raspberry-exporter'
prometheus_software_use_prerelease: true

- name: Include task to setup {{ prometheus_software_name }} facts
include_tasks: _setup_software_facts.yml

- name: Set {{ prometheus_software_name_version }} facts
set_fact:
prometheus_software_opts:
- '--telemetry.address={{ prometheus_software_host }}:{{ prometheus_software_port }}'

- name: Include task to perform installation of {{ prometheus_software_name_version }}
include_tasks: _install.yml

- name: Include task to setup {{ prometheus_software_name_version }} service
include_tasks: _service.yml

- name: Include task to perform post install cleanup of {{ prometheus_software_name_version }}
include_tasks: _post_install_cleanup.yml
33 changes: 33 additions & 0 deletions tasks/wip/syslog_ng_exporter_brandond.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
- block:
- name: Include role mesaguy.prometheus setup task
include_tasks: _setup.yml
when: prometheus_setup_task_executed is not defined

- name: Starting syslog_ng_exporter (brandond) install
set_fact:
prometheus_exporter: true
prometheus_software_allow_build_test: true
prometheus_software_author: brandond
prometheus_software_binary_name: syslog_ng_exporter
prometheus_software_name: syslog_ng_exporter_brandond
prometheus_software_description: 'Prometheus syslog_ng_exporter for exporting syslog-ng statistics'
prometheus_software_documentation: 'https://github.com/brandond/syslog_ng_exporter'

- name: Include task to setup {{ prometheus_software_name }} facts
include_tasks: _setup_software_facts.yml

- name: Set {{ prometheus_software_name_version }} facts
set_fact:
prometheus_software_config_name: '{{ prometheus_software_name }}'
prometheus_software_opts:
- '--telemetry.address={{ prometheus_software_host }}:{{ prometheus_software_port }}'

- name: Include task to perform installation of {{ prometheus_software_name_version }}
include_tasks: _install.yml

- name: Include task to setup {{ prometheus_software_name_version }} service
include_tasks: _service.yml

- name: Include task to perform post install cleanup of {{ prometheus_software_name_version }}
include_tasks: _post_install_cleanup.yml

0 comments on commit db52284

Please sign in to comment.