Skip to content

Commit 3fce2b9

Browse files
author
Mesaguy
committed
Merge branch 'eleven' into twelve
2 parents 2b108b0 + 32943e8 commit 3fce2b9

35 files changed

+1313
-122
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## [Unreleased]
88

99
### Added
10+
1011
- New exporters:
1112
- dockerhub_exporter_promhippie
1213
- fping_exporter_schweikert
@@ -19,6 +20,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1920

2021
### Changed
2122

23+
- Upgrade redis_exporter_oliver006 from v1.5.2 to v1.5.3
24+
- Update metadata to include latest master commits
25+
26+
## [0.11.4] - 2020-04-09
27+
28+
### Changed
29+
2230
- Upgrade Go from v1.13.9 to v1.13.10
2331
- Upgrade apache_exporter_lusitaniae from v0.7.0 to v0.8.0
2432
- Upgrade ntp_exporter_sapcc v1.1.1 to v1.1.2

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ See each exporter's usage page for more details:
4848
|-----------------------------------------------------------------------------------------------|:-----------------------------------------------------------:|:--------------------:|:---------:|
4949
|[389ds_exporter_terrycain](https://github.com/terrycain/389ds_exporter) | [usage](docs/389ds_exporter_terrycain.md) | terrycain | Yes |
5050
|[apache_exporter_lusitaniae](https://github.com/Lusitaniae/apache_exporter) | [usage](docs/apache_exporter_lusitaniae.md) | Lusitaniae | Yes |
51+
|[aerospike_exporter_alicebob](https://github.com/alicebob/asprom) | [usage](docs/aerospike_exporter_alicebob.md) | alicebob | Yes |
5152
|[bigip_exporter_expressenab](https://github.com/ExpressenAB/bigip_exporter) | [usage](docs/bigip_exporter_expressenab.md) | ExpressenAB | Yes |
5253
|[bind_exporter_prometheus_community](https://github.com/prometheus-community/bind_exporter) | [usage](docs/bind_exporter_prometheus_community.md) | prometheus-community | Yes |
5354
|[blackbox_exporter](https://github.com/prometheus/blackbox_exporter) | [usage](docs/blackbox_exporter.md) | prometheus | Yes |
5455
|[ceph_exporter](https://github.com/digitalocean/ceph_exporter) | [usage](docs/ceph_exporter.md) | digitalocean | Partly |
56+
|[clickhouse_exporter_perconalab](https://github.com/Percona-Lab/clickhouse_exporter) | [usage](docs/clickhouse_exporter_perconalab.md) | perconalab | Yes |
5557
|[cloudwatch_exporter](https://github.com/prometheus/cloudwatch_exporter) | [usage](docs/cloudwatch_exporter.md) | prometheus | Yes |
5658
|[collectd_exporter](https://github.com/prometheus/collectd_exporter) | [usage](docs/collectd_exporter.md) | prometheus | Yes |
5759
|[consul_exporter](https://github.com/prometheus/consul_exporter) | [usage](docs/consul_exporter.md) | prometheus | Yes |
@@ -77,6 +79,7 @@ See each exporter's usage page for more details:
7779
|[nvidia_gpu_exporter_mindprince](https://github.com/mindprince/nvidia_gpu_prometheus_exporter) | [usage](docs/nvidia_gpu_exporter_mindprince.md) | mindprince | Yes |
7880
|[openldap_exporter_tomcz](https://github.com/tomcz/openldap_exporter) | [usage](docs/openldap_exporter_tomcz.md) | tomcz | Yes |
7981
|[openvpn_exporter_kumina](https://github.com/kumina/openvpn_exporter) | [usage](docs/openvpn_exporter_kumina.md) | kumina | Yes |
82+
|[phpfpm_exporter_hipages](https://github.com/hipages/php-fpm_exporter) | [usage](docs/phpfpm_exporter_hipages.md) | hipages | Yes |
8083
|[ping_exporter_czerwonk](https://github.com/czerwonk/ping_exporter) | [usage](docs/ping_exporter_czerwonk.md) | czerwonk | Yes |
8184
|[postgres_exporter_wrouesnel](https://github.com/wrouesnel/postgres_exporter) | [usage](docs/postgres_exporter_wrouesnel.md) | wrouesnel | Yes |
8285
|[powerdns_exporter_ledgr](https://github.com/ledgr/powerdns_exporter) | [usage](docs/powerdns_exporter_ledgr.md) | ledgr | Partly |

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ prometheus_software_setup_pkg_mgrs:
5858
- 'Alpine'
5959
- 'Archlinux'
6060
- 'Gentoo'
61+
prometheus_default_url_unarchive: true
6162

6263
# Base directories
6364
prometheus_etc_dir: '{{ prometheus_root_dir }}/etc'

docs/aerospike_exporter_alicebob.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Aerospike exporter (alicebob) configuration
2+
3+
To enable [aerospike_exporter by alicebob](https://github.com/alicebob/asprom) include role task: aerospike_exporter_alicebob
4+
5+
An array of additional flags to pass to the aerospike_exporter daemon:
6+
7+
prometheus_aerospike_exporter_alicebob_extra_opts: []
8+
9+
The version of aerospike_exporter_alicebob to install. The default version can be found in the [aerospike_exporter_alicebob variables file](../vars/software/aerospike_exporter_alicebob.yml) and the default version can be overridden using the following variable:
10+
11+
prometheus_aerospike_exporter_alicebob_version: "1.0.0"
12+
13+
Allow the use of prerelease versions (beta, test, development, etc versions), defaults to 'false':
14+
15+
prometheus_aerospike_exporter_alicebob_use_prerelease: true
16+
17+
Port and IP to listen on. Defaults to listening on all available IPs on port 9145:
18+
19+
prometheus_aerospike_exporter_alicebob_host: "0.0.0.0"
20+
prometheus_aerospike_exporter_alicebob_port: 9145
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Clickhouse exporter (Percona-Lab) configuration
2+
3+
To enable [clickhouse_exporter by Percona-Lab](https://github.com/Percona-Lab/clickhouse_exporter) include role task: clickhouse_exporter_perconalab
4+
5+
An array of additional flags to pass to the clickhouse_exporter daemon:
6+
7+
prometheus_clickhouse_exporter_perconalab_extra_opts: []
8+
9+
The version of clickhouse_exporter_perconalab to install. The default version can be found in the [clickhouse_exporter_perconalab variables file](../vars/software/clickhouse_exporter_perconalab.yml) and the default version can be overridden using the following variable:
10+
11+
prometheus_clickhouse_exporter_perconalab_version: "1.0.0"
12+
13+
Allow the use of prerelease versions (beta, test, development, etc versions), defaults to 'false':
14+
15+
prometheus_clickhouse_exporter_perconalab_use_prerelease: true
16+
17+
Port and IP to listen on. Defaults to listening on all available IPs on port 9145:
18+
19+
prometheus_clickhouse_exporter_perconalab_host: "0.0.0.0"
20+
prometheus_clickhouse_exporter_perconalab_port: 9363

docs/jmx_exporter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The [jmx_exporter](https://github.com/prometheus/jmx_exporter) is different from
77
The configuration content. The example below utilizes a file named 'jmx_exporter.yml' in your Ansible root directory's 'files' directory. If no configuration content is defined, a default configuration file is utilized. You will want to customize your configuration file content!:
88

99
``` yaml
10-
prometheus_jmx_cfgs:
10+
prometheus_jmx_exporter_cfgs:
1111
elasticsearch: "{{ lookup('file', '../../files/prometheus/jmx.elasticsearch.yml') | from_yaml }}"
1212
puppet: "{{ lookup('file', '../../files/prometheus/jmx.puppet.yml') | from_yaml }}"
1313
```

docs/mongodb_exporter_percona.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ To enable [mongodb_exporter by percona](https://github.com/percona/mongodb_expor
55
Authentication can be configured using a YAML file or environmental variables using the following syntax:
66

77
prometheus_mongodb_exporter_percona_env_vars:
8-
MONGODB_URI='mongodb://localhost:27017'
9-
HTTP_AUTH='user:password'
8+
MONGODB_URI: 'mongodb://mongouser:mongopassword@localhost:27017/authdatabase'
9+
HTTP_AUTH: 'user:password'
1010

1111
An array of additional flags to pass to the mongodb_exporter daemon:
1212

docs/phpfpm_exporter_hipages.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# PHP-FPM exporter (hipages) configuration
2+
3+
To enable [phpfpm_exporter by hipages](https://github.com/hipages/php-fpm_exporter) include role task: phpfpm_exporter_hipages
4+
5+
An array of additional flags to pass to the phpfpm_exporter daemon:
6+
7+
prometheus_phpfpm_exporter_hipages_extra_opts: []
8+
9+
The version of phpfpm_exporter_hipages to install. The default version can be found in the [phpfpm_exporter_hipages variables file](../vars/software/phpfpm_exporter_hipages.yml) and the default version can be overridden using the following variable:
10+
11+
prometheus_phpfpm_exporter_hipages_version: "1.0.0"
12+
13+
Allow the use of prerelease versions (beta, test, development, etc versions), defaults to 'false':
14+
15+
prometheus_phpfpm_exporter_hipages_use_prerelease: true
16+
17+
Port and IP to listen on. Defaults to listening on all available IPs on port 9145:
18+
19+
prometheus_phpfpm_exporter_hipages_host: "0.0.0.0"
20+
prometheus_phpfpm_exporter_hipages_port: 9253

docs/statsd_exporter.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,33 @@
22

33
To enable [statsd_exporter](https://github.com/prometheus/statsd_exporter) include role task: statsd_exporter
44

5-
The configuration content. The example below utilizes a file named 'statsd_exporter.yml' in your Ansible root directory's 'files' directory. If no configuration content is defined, a default configuration file is utilized. You will want to customize your configuration file content!:
5+
An array of additional flags to pass to the statsd_exporter daemon:
6+
7+
prometheus_statsd_exporter_extra_opts:
8+
- --statsd.listen-udp=":9125"
9+
- "--statsd.mapping-config={{prometheus_etc_dir}}/statsd_exporter.yml"
10+
11+
The configuration content. The example below utilizes a file named 'statsd_exporter.yml' in your Ansible root directory's 'files' directory. If no configuration content is defined, a default configuration is utilized. To use specified config `"--statsd.mapping-config={{prometheus_etc_dir}}/statsd_exporter.yml"` should be added to `prometheus_statsd_exporter_extra_opts`. You will want to customize your configuration file content!:
612

713
prometheus_statsd_exporter_cfg: '{{ lookup("file", "../files/statsd_exporter.yml") | from_yaml }}'
814

915
Alternatively, the configuration file can be defined directly:
1016

1117
prometheus_statsd_exporter_cfg:
12-
- match: test.dispatcher.*.*.*
13-
name: dispatcher_events_total
14-
labels:
15-
action: $2
16-
job: test_dispatcher
17-
outcome: $3
18-
processor: $1
19-
20-
An array of additional flags to pass to the statsd_exporter daemon:
21-
22-
prometheus_statsd_exporter_extra_opts:
23-
--statsd.listen-udp=":9125"
18+
defaults:
19+
quantiles:
20+
- quantile: 0.99
21+
error: 0.001
22+
- quantile: 0.5
23+
error: 0.05
24+
mappings:
25+
- match: test.dispatcher.*.*.*
26+
name: dispatcher_events_total
27+
labels:
28+
action: $2
29+
job: test_dispatcher
30+
outcome: $3
31+
processor: $1
2432

2533
The version of statsd_exporter to install. The default version can be found in the [statsd_exporter variables file](../vars/software/statsd_exporter.yml) and the default version can be overridden using the following variable:
2634

tasks/_install_from_binary.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
- not prometheus_software_installed.stat.exists
8282
- prometheus_software_download is succeeded
8383
- prometheus_software_archive_file | regex_search('.*(tar.gz)$', ignorecase=True)
84+
- prometheus_software_url_unarchive
8485

8586
- name: 'Unarchive {{ prometheus_software_name_version }} ({{ prometheus_software_archive_file }})'
8687
become: true
@@ -100,6 +101,25 @@
100101
when:
101102
- not prometheus_software_installed.stat.exists
102103
- prometheus_software_download is succeeded
104+
- prometheus_software_url_unarchive
105+
106+
- name: 'Copy {{ prometheus_software_name_version }} ({{ prometheus_software_archive_file }})'
107+
become: true
108+
copy:
109+
owner: root
110+
group: '{{ prometheus_group }}'
111+
src: '{{ prometheus_software_archive_file }}'
112+
dest: '{{ prometheus_software_install_dir }}/{{ prometheus_software_binary_name }}'
113+
remote_src: true
114+
# Handled downstream:
115+
ignore_errors: '{{ prometheus_software_fallback_to_build | bool }}'
116+
register: prometheus_software_installation
117+
notify:
118+
- Restart Prometheus service
119+
when:
120+
- not prometheus_software_installed.stat.exists
121+
- prometheus_software_download is succeeded
122+
- not prometheus_software_url_unarchive
103123

104124
- name: Remove {{ prometheus_software_name_version }} archive file
105125
become: true

0 commit comments

Comments
 (0)