Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elasticsearch_indices_active_queries is not present #640

Open
garrington opened this issue Oct 26, 2022 · 7 comments
Open

elasticsearch_indices_active_queries is not present #640

garrington opened this issue Oct 26, 2022 · 7 comments
Labels

Comments

@garrington
Copy link

We've setup an environment to test out this exporter. One of the metrics we'd like to monitor doesn't seem to be present:

elasticsearch_indices_active_queries

Here is the config we're using:

/exporter-bin/elasticsearch_exporter/elasticsearch_exporter
--es.uri="${DOMAIN_ENDPOINT}"
--aws.region="us-east-1"
--log.level="${LOG_LEVEL}"
--es.all
--es.cluster_settings
--es.indices
--es.indices_mappings
--es.indices_settings
--es.shards
--es.snapshots
--es.timeout="45s"
--log.output="stdout" &

I also cannot find this metric referenced anywhere in code. Has this metric been deprecated?

@sysadmind
Copy link
Contributor

It would appear the the README is wrong. The metric name is elasticsearch_search_active_queries. I think we need to fix this.

@sysadmind sysadmind added the bug label Nov 1, 2022
sysadmind added a commit to sysadmind/elasticsearch_exporter that referenced this issue Nov 1, 2022
The README was wrong as noted in prometheus-community#640. Add the indices_ prefix to the subsystem since this is related to indices and update the README.

Signed-off-by: Joe Adams <github@joeadams.io>
@lynBIT
Copy link

lynBIT commented Nov 1, 2022

I can't find this metric, and I can't find elasticsearch_indices_index_current either. Do you know why

sysadmind added a commit to sysadmind/elasticsearch_exporter that referenced this issue Nov 1, 2022
The README was wrong as noted in prometheus-community#640. Add the indices_ prefix to the subsystem since this is related to indices and update the README.

Signed-off-by: Joe Adams <github@joeadams.io>
@lynBIT
Copy link

lynBIT commented Nov 2, 2022

A new metrics.I can't find elasticsearch_indices_index_current,
the config we're using:
/exporter-bin/elasticsearch_exporter/elasticsearch_exporter
--es.uri="${DOMAIN_ENDPOINT}"
--es.all
--es.indices
--es.indices_settings
--es.shards
--es.snapshots
I find this metric referenced in code.
image
but I can't find it in prometheus
image
there is no metric named elasticsearch_indices_index_current and elasticsearch_index_stats_index_current
Please help me,thank you @sysadmind

@sysadmind
Copy link
Contributor

I'm not sure why you don't see these. I just ran a test and I can see the elasticsearch_index_stats_index_current metric.

Run elasticsearch in a docker container:

docker run --rm -it -p 9200:9200 -e "xpack.security.enabled=false"  -e "discovery.type=single-node" -e "cluster.name=elasticsearch" -e "ES_JAVA_OPTS=-Xms750m -Xmx750m" elasticsearch:7.16.3

Run the exporter:

elasticsearch_exporter --es.uri="127.0.0.1:9200" --es.all --es.indices

Check the metrics from the exporter:

curl -s 127.0.0.1:9114/metrics | grep elasticsearch_index_stats_index_current 
# HELP elasticsearch_index_stats_index_current The number of documents currently being indexed to an index
# TYPE elasticsearch_index_stats_index_current gauge
elasticsearch_index_stats_index_current{cluster="elasticsearch",index=".geoip_databases"} 0

For next steps, I would query the exporter directly and see if the metric is listed. Also, are you sure that you're on the latest version of the exporter? The current version is v1.5.0

@lynBIT
Copy link

lynBIT commented Nov 10, 2022

I have --es.ssl-skip-verify on my es exporter, does it have anything to do with this?

@gempir
Copy link

gempir commented Nov 17, 2022

Running the latest version 1.5

elasticsearch_exporter --web.listen-address=127.0.0.1:9114 --es.all --es.cluster_settings --es.indices --es.indices_settings --es.indices_mappings --es.aliases --es.shards

But also, I do not get

elasticsearch_indices_index_current

Other metrics around index stats do exist:

elasticsearch_indices_indexing_index_time_seconds_total

@gempir
Copy link

gempir commented Nov 17, 2022

Oh it's a typo!

elasticsearch_indices_index_current

Says the readme, but the correct name is elasticsearch_index_stats_index_current

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants