mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
add elasticsearch_exporter to docker-compose.metrics.yml and prometheus.yml files
This commit is contained in:
parent
cadfc15e75
commit
0bbff92c73
3 changed files with 16 additions and 1 deletions
|
@ -75,6 +75,6 @@ services:
|
|||
- '--es.uri=http://db_elasticsearch:9200'
|
||||
restart: always
|
||||
ports:
|
||||
- "9114:9114"
|
||||
- "9210:9114"
|
||||
depends_on:
|
||||
- db_elasticsearch
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Add table
Reference in a new issue