elasticsearch-prometheus-exporter icon indicating copy to clipboard operation
elasticsearch-prometheus-exporter copied to clipboard

es_threadpool_tasks_number is always empty

Open Kuckkuck opened this issue 3 years ago • 1 comments

The metric es_threadpool_tasks_number is always empty on all nodes. Any idea, what has to be activated to enable this metric? It's always 0 on data, master and client nodes.

I am using Elastic: 7.9.2. with the 7.9.2.0 elastic prometheus exporter plugin.

Kuckkuck avatar Sep 07 '21 12:09 Kuckkuck

It seems it shows only queued tasks in threadpool:

  • https://github.com/vvanholl/elasticsearch-prometheus-exporter/blob/7.14.1.0/src/main/java/org/compuscene/metrics/prometheus/PrometheusMetricsCollector.java#L621

To see currently running threads, we use query: es_threadpool_threads_number{type="active"}.

yashumitsu avatar Sep 13 '21 12:09 yashumitsu