хочу добавить доп мониторинг эластика
взял этот exporter
запустил через docker-compose на серверe prometheus
version: '2'
services:
elasticsearch_exporter:
image: justwatch/elasticsearch_exporter:latest
container_name: elasticsearch_exporter
command:
- '-es.uri=http://my.elastic.server:9200'
restart: always
ports:
- "127.0.0.1:9114:9114"
docker-compose ps
Name Command State Ports
------------------------------------------------------------------------------------------------------------
elasticsearch_exporter /bin/elasticsearch_exporte ... Up 9108/tcp, 127.0.0.1:9114->9114/tcp
добавил в prometheus.yml
- job_name: "my.elastic.server:elasticsearch"
scrape_interval: 10s
static_configs:
- targets: ['localhost:9114']
но никаких метрик я не вижу
curl 127.0.0.1:9114
curl: (56) Recv failure: Connection reset by peer
curl http://my.elastic.server:9200
{
"name" : "4v0VI7s",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "RYyn7NQnRCabaXhjyUbLGg",
"version" : {
"number" : "6.6.2",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "3bd3e59",
"build_date" : "2019-03-06T15:16:26.864148Z",
"build_snapshot" : false,
"lucene_version" : "7.6.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
ЧЯДНТ?