mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +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'
|
- '--es.uri=http://db_elasticsearch:9200'
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "9114:9114"
|
- "9210:9114"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db_elasticsearch
|
- db_elasticsearch
|
||||||
|
|
|
@ -221,3 +221,11 @@ scrape_configs:
|
||||||
- source_labels: ['__meta_consul_node']
|
- source_labels: ['__meta_consul_node']
|
||||||
target_label: instance
|
target_label: instance
|
||||||
metrics_path: /used-memory/
|
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
|
|
@ -215,3 +215,10 @@ scrape_configs:
|
||||||
scheme: http
|
scheme: http
|
||||||
tls_config:
|
tls_config:
|
||||||
insecure_skip_verify: true
|
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