7.2.10.4.2. Configuration / fichiers utiles

Prometheus Elasticsearch Exporter est activé par défaut. Cependant il est possible de désactiver son installation depuis la configuration en éditant la variable prometheus.elasticsearch_exporter.enabled: false dans le fichier environments/group_vars/all/cots_var.yml.

7.2.10.4.2.1. Fichier de variable d’environnement

{% if inventory_hostname in groups['hosts_elasticsearch_data'] %}
ELASTICSEARCH_EXPORTER_OPTS='--es.uri=http://{{ ip_service }}:{{ elasticsearch.data.port_http }} --web.listen-address=:{{ prometheus.elasticsearch_exporter.port | default(9114) }} --web.telemetry-path={{ prometheus.elasticsearch_exporter.metrics_path | default('/metrics') }} --log.level={{ prometheus.elasticsearch_exporter.log_level | default('warn') }}'
{% elif inventory_hostname in groups['hosts_elasticsearch_log'] %}
ELASTICSEARCH_EXPORTER_OPTS='--es.uri=http://{{ ip_admin }}:{{ elasticsearch.log.port_http }} --web.listen-address=:{{ prometheus.elasticsearch_exporter.port | default(9114) }} --web.telemetry-path={{ prometheus.elasticsearch_exporter.metrics_path | default('/metrics') }} --log.level={{ prometheus.elasticsearch_exporter.log_level | default('warn') }}'
{% endif %}