add elasticsearch_exporter to docker-compose.metrics.yml and prometheus.yml files

This commit is contained in:
Jonathan Math 2021-10-11 11:09:58 -05:00
parent cadfc15e75
commit 0bbff92c73
3 changed files with 16 additions and 1 deletions

View file

@ -75,6 +75,6 @@ services:
- '--es.uri=http://db_elasticsearch:9200'
restart: always
ports:
- "9114:9114"
- "9210:9114"
depends_on:
- db_elasticsearch

View file

@ -221,3 +221,11 @@ scrape_configs:
- source_labels: ['__meta_consul_node']
target_label: instance
metrics_path: /used-memory/
- job_name: 'elastic search exporter'
consul_sd_configs:
- server: 'consul.service.nyc1.consul:8500'
services: ['elasticsearch_exporter']
relabel_configs:
- source_labels: ['__meta_consul_node']
target_label: instance

View file

@ -213,5 +213,12 @@ scrape_configs:
- targets: ['flask_metrics_redis:5569']
metrics_path: /used-memory/
scheme: http
tls_config:
insecure_skip_verify: true
- job_name: 'elastic search exporter'
static_configs:
- targets: ['elasticsearch_exporter:9114']
scheme: http
tls_config:
insecure_skip_verify: true