prometheus-community / elasticsearch_exporter

Elasticsearch stats exporter for Prometheus
Apache License 2.0
1.93k stars 790 forks source link

"elasticsearch_indices_docs" metric is missing #251

Closed rolindroy closed 5 years ago

rolindroy commented 5 years ago

Hello,

I have deployed elasticsearch_exporter on K8s cluster to send ES metrics to Prometheus. I could see some of the metrics are missing. I have enabled "es.indices=true" to query stats for all indices in the cluster. But "elasticsearch_indices_docs" is missing in the metric list.

     containers:
        - name: elasticsearch-exporter
          image: "justwatch/elasticsearch_exporter:1.0.2"
          imagePullPolicy: IfNotPresent
          command: ["elasticsearch_exporter",
                    "-es.uri=elasticsearch-logging:9200",
                    "-es.all=true",
                    "-es.indices=true",
                    "-es.timeout=30s",
                    "-web.listen-address=:9108",
                    "-web.telemetry-path=/metrics"]
zwopir commented 5 years ago

can you please check if the problem still occurs if you use the version 1.0.4rc1?!

rolindroy commented 5 years ago

@zwopir I was able to fix this issue by modifing "-es.uri" with http tag as prefix. -es.uri=http://elasticsearch-logging:9200

Thanks for your time.