same correction
This commit is contained in:
parent
c37538a333
commit
29c3014506
@ -35,7 +35,7 @@
|
|||||||
when: not stat_result.stat.exists or exporter_upgrade == "yes"
|
when: not stat_result.stat.exists or exporter_upgrade == "yes"
|
||||||
tags: [ 'prometheus_{{ exporter }}' ]
|
tags: [ 'prometheus_{{ exporter }}' ]
|
||||||
|
|
||||||
- name: '{{ exporter }} exporter | get latest release from GitHub'
|
- name: '{{ exporter }} exporter | get latest release from GitHub'
|
||||||
shell: curl --silent "https://api.github.com/repos/{{ prometheus_repo }}/{{ exporter }}_exporter/releases/latest" | jq -r .tag_name | sed "s/v//"
|
shell: curl --silent "https://api.github.com/repos/{{ prometheus_repo }}/{{ exporter }}_exporter/releases/latest" | jq -r .tag_name | sed "s/v//"
|
||||||
args:
|
args:
|
||||||
warn: false
|
warn: false
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
notify:
|
notify:
|
||||||
- 'prometheus | server | restart container'
|
- 'prometheus | server | restart container'
|
||||||
|
|
||||||
- name: 'prometheus | server | deploy container'
|
- name: 'prometheus | server | deploy container'
|
||||||
docker_container:
|
docker_container:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
hostname: '{{ inventory_hostname }}'
|
hostname: '{{ inventory_hostname }}'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
{% if (prometheus_mongodb_exporter_user is defined) and (prometheus_mongodb_exporter_pass is defined) %}
|
{% if (prometheus_mongodb_exporter_user is defined) and (prometheus_mongodb_exporter_pass is defined) %}
|
||||||
MONGODB_URI=mongodb://{{ prometheus_mongodb_exporter_user }}:{{ prometheus_mongodb_exporter_pass }}@{{ prometheus_mongodb_exporter_host }}:{{ prometheus_mongodb_exporter_port }}/{{ prometheus_mongodb_exporter_database }}
|
MONGODB_URI=mongodb://{{ prometheus_mongodb_exporter_user }}:{{ prometheus_mongodb_exporter_pass }}@{{ prometheus_mongodb_exporter_host }}:{{ prometheus_mongodb_exporter_port }}/{{ prometheus_mongodb_exporter_database }}
|
||||||
{% else %}
|
{% else %}
|
||||||
MONGODB_URI=mongodb://{{ prometheus_mongodb_exporter_host }}:{{ prometheus_mongodb_exporter_port }}/{{ prometheus_mongodb_exporter_database }}
|
MONGODB_URI=mongodb://{{ prometheus_mongodb_exporter_host }}:{{ prometheus_mongodb_exporter_port }}/{{ prometheus_mongodb_exporter_database }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
{% if (prometheus_opcache_exporter_fcgi_uri is defined) %}
|
{% if (prometheus_opcache_exporter_fcgi_uri is defined) %}
|
||||||
ARGS='"--opcache.fcgi-uri="{{ prometheus_opcache_exporter_fcgi_uri }}"'
|
ARGS='"--opcache.fcgi-uri="{{ prometheus_opcache_exporter_fcgi_uri }}"'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -19,7 +19,7 @@ rule_files:
|
|||||||
# Here it's Prometheus itself.
|
# Here it's Prometheus itself.
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
||||||
- job_name: '{{ prometheus_server_job_name }}'
|
- job_name: '{{ prometheus_server_job_name }}'
|
||||||
|
|
||||||
# Override the global default and scrape targets from this job every 5 seconds.
|
# Override the global default and scrape targets from this job every 5 seconds.
|
||||||
scrape_interval: {{ prometheus_server_scrape_interval }}s
|
scrape_interval: {{ prometheus_server_scrape_interval }}s
|
||||||
@ -39,7 +39,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_node_exporter_targets %}
|
{% for target in prometheus_node_exporter_targets %}
|
||||||
- {{ target }}:9100
|
- {{ target }}:9100
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [ __address__ ]
|
- source_labels: [ __address__ ]
|
||||||
@ -66,7 +66,7 @@ scrape_configs:
|
|||||||
{% else %}
|
{% else %}
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_mysqld_exporter_targets %}
|
{% for target in prometheus_mysqld_exporter_targets %}
|
||||||
- {{ target }}:9104
|
- {{ target }}:9104
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
@ -94,7 +94,7 @@ scrape_configs:
|
|||||||
{% else %}
|
{% else %}
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_mongodb_exporter_targets %}
|
{% for target in prometheus_mongodb_exporter_targets %}
|
||||||
- {{ target }}:9216
|
- {{ target }}:9216
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -117,7 +117,7 @@ scrape_configs:
|
|||||||
{% else %}
|
{% else %}
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_postgres_exporter_targets %}
|
{% for target in prometheus_postgres_exporter_targets %}
|
||||||
- {{ target }}:9187
|
- {{ target }}:9187
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -130,7 +130,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_phpfpm_exporter_targets %}
|
{% for target in prometheus_phpfpm_exporter_targets %}
|
||||||
- {{ target }}:9253
|
- {{ target }}:9253
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [ __address__ ]
|
- source_labels: [ __address__ ]
|
||||||
@ -147,7 +147,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_opcache_exporter_targets %}
|
{% for target in prometheus_opcache_exporter_targets %}
|
||||||
- {{ target }}:9101
|
- {{ target }}:9101
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [ __address__ ]
|
- source_labels: [ __address__ ]
|
||||||
@ -164,7 +164,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_apache_exporter_targets %}
|
{% for target in prometheus_apache_exporter_targets %}
|
||||||
- {{ target }}:9117
|
- {{ target }}:9117
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [ __address__ ]
|
- source_labels: [ __address__ ]
|
||||||
@ -181,7 +181,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_haproxy_exporter_targets %}
|
{% for target in prometheus_haproxy_exporter_targets %}
|
||||||
- {{ target }}:8404
|
- {{ target }}:8404
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [ __address__ ]
|
- source_labels: [ __address__ ]
|
||||||
@ -198,7 +198,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_varnish_exporter_targets %}
|
{% for target in prometheus_varnish_exporter_targets %}
|
||||||
- {{ target }}:9131
|
- {{ target }}:9131
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [ __address__ ]
|
- source_labels: [ __address__ ]
|
||||||
@ -228,7 +228,7 @@ scrape_configs:
|
|||||||
- source_labels: [__param_target]
|
- source_labels: [__param_target]
|
||||||
target_label: instance
|
target_label: instance
|
||||||
- target_label: __address__
|
- target_label: __address__
|
||||||
replacement: {{ prometheus_blackbox_exporter_host }}:9115
|
replacement: {{ prometheus_blackbox_exporter_host }}:9115
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if prometheus_blackbox_exporter_ping is defined %}
|
{% if prometheus_blackbox_exporter_ping is defined %}
|
||||||
## ping ##
|
## ping ##
|
||||||
@ -240,7 +240,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_blackbox_exporter_ping %}
|
{% for target in prometheus_blackbox_exporter_ping %}
|
||||||
- {{ target }}
|
- {{ target }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [__address__]
|
- source_labels: [__address__]
|
||||||
@ -248,7 +248,7 @@ scrape_configs:
|
|||||||
- source_labels: [__param_target]
|
- source_labels: [__param_target]
|
||||||
target_label: instance
|
target_label: instance
|
||||||
- target_label: __address__
|
- target_label: __address__
|
||||||
replacement: {{ prometheus_blackbox_exporter_host }}:9115
|
replacement: {{ prometheus_blackbox_exporter_host }}:9115
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -258,7 +258,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_redis_multi_instances_exporter_targets %}
|
{% for target in prometheus_redis_multi_instances_exporter_targets %}
|
||||||
- {{ target }}
|
- {{ target }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
metrics_path: /scrape
|
metrics_path: /scrape
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
@ -280,7 +280,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_redis_exporter_targets %}
|
{% for target in prometheus_redis_exporter_targets %}
|
||||||
- {{ target }}:9121
|
- {{ target }}:9121
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [ __address__ ]
|
- source_labels: [ __address__ ]
|
||||||
@ -297,7 +297,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_proxysql_exporter_targets %}
|
{% for target in prometheus_proxysql_exporter_targets %}
|
||||||
- {{ target }}:6070
|
- {{ target }}:6070
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [ __address__ ]
|
- source_labels: [ __address__ ]
|
||||||
target_label: instance
|
target_label: instance
|
||||||
@ -318,7 +318,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_kong_exporter_targets %}
|
{% for target in prometheus_kong_exporter_targets %}
|
||||||
- {{ target }}
|
- {{ target }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -330,7 +330,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_memcached_exporter_targets %}
|
{% for target in prometheus_memcached_exporter_targets %}
|
||||||
- {{ target }}:9150
|
- {{ target }}:9150
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [ __address__ ]
|
- source_labels: [ __address__ ]
|
||||||
@ -347,7 +347,7 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target in prometheus_docker_exporter_targets %}
|
{% for target in prometheus_docker_exporter_targets %}
|
||||||
- {{ target }}:9323
|
- {{ target }}:9323
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [ __address__ ]
|
- source_labels: [ __address__ ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user